1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-30 21:49:25 +00:00
freebsd-ports/net/netcat/files/patch-ab
David E. O'Brien 7b8cf3e381 Enable TELNET' and GAPING_SECURITY_HOLE'.
Requested by:	ru (GAPING_SECURITY_HOLE)
2000-08-27 00:27:19 +00:00

36 lines
1.0 KiB
Plaintext

--- 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' STATIC=-static
bsdi:
make -e $(ALL) $(MFLAGS) XFLAGS='-DBSDI' STATIC=-Bstatic