aboutsummaryrefslogtreecommitdiff
path: root/security/cfs/files/patch-Makefile
blob: 1eb2833176437c129da4771850a529ec70b06389 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37

$FreeBSD$

--- Makefile.orig
+++ Makefile
@@ -74,8 +74,9 @@
 #CC=cc
 #COPT=-O -DNOT_ANSI_C -DPROTOTYPES=0
 # for gcc, use
-CC=gcc
-COPT=-O2 -DPROTOTYPES=1
+CC?=gcc
+CFLAGS?=-O2
+CFLAGS+=-DPROTOTYPES=1
 
 #1B: paths:
 #some peple like /usr/local/sbin instead of /usr/local/etc
@@ -224,12 +225,18 @@
 ## not sure what to do for NeXT.  I think this works:
 #CFLAGS=$(COPT) -posix -D_BSD -DANYPORT -I$(RINCLUDES)
 
+## use these for FreeBSD
+CFLAGS+=-DBSD44 -DANYPORT -DSHORTLINKS
+LIBS=-lrpcsvc
+COMPAT=-lcompat
+RPCOPTS=
+
 
 #==========================================================================
 # (3/3) CONFIGURE: one last thing
 #==========================================================================
 # finally, comment out the next line:
-CC=you_forgot_to_edit_the_makefile
+#CC=you_forgot_to_edit_the_makefile
 
 # now you're done with local configuration.