aboutsummaryrefslogtreecommitdiffstats
path: root/net/netcat/files/patch-ab
blob: da96b424bb3258eb61b3161454e47fe4ad912516 (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
--- Makefile.orig   Tue Mar 19 19:16:06 1996
+++ Makefile    Sat Jul 24 13:30:04 1999
@@ -9,12 +9,12 @@
 # pick gcc if you'd rather , and/or do -g instead of -O if debugging
 # debugging
 # DFLAGS = -DTEST -DDEBUG
-CFLAGS = -O
+CFLAGS ?= -O
 XFLAGS =   # xtra cflags, set by systype targets
 XLIBS =        # xtra libs if necessary?
 # -Bstatic for sunos,  -static for gcc, etc.  You want this, trust me.
 STATIC =
-CC = cc $(CFLAGS)
+CC ?= cc
 LD = $(CC) -s  # linker; defaults to stripped executables
 o = o      # object extension
 
@@ -28,7 +28,7 @@
 ### HARD TARGETS
 
 nc:    netcat.c
-   $(LD) $(DFLAGS) $(XFLAGS) $(STATIC) -o nc netcat.c $(XLIBS)
+   $(LD) $(CFLAGS) $(DFLAGS) $(XFLAGS) $(STATIC) -o nc netcat.c $(XLIBS)
 
 nc-dos:
    @echo "DOS?!  Maybe someday, but not now"
@@ -81,7 +81,7 @@
 
 # virtually the same as netbsd/bsd44lite/whatever
 freebsd:
-   make -e $(ALL) $(MFLAGS) XFLAGS='-DFREEBSD' STATIC=-static
+   make -e $(ALL) $(MFLAGS) XFLAGS='-DFREEBSD -DGAPING_SECURITY_HOLE -DTELNET -DINET6' STATIC=-static
 
 bsdi:
    make -e $(ALL) $(MFLAGS) XFLAGS='-DBSDI' STATIC=-Bstatic