aboutsummaryrefslogtreecommitdiffstats
path: root/net/netcat
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>1999-04-16 18:26:23 +0800
committerkris <kris@FreeBSD.org>1999-04-16 18:26:23 +0800
commit5b768d22891831d2cb6a85de075a5706a24c2013 (patch)
treea990dee73366d40af0fbaf58c50b7a89813f6810 /net/netcat
parenta3650bcbe555be18fb3b4fade48b63d04f8d1b2f (diff)
downloadfreebsd-ports-gnome-5b768d22891831d2cb6a85de075a5706a24c2013.tar.gz
freebsd-ports-gnome-5b768d22891831d2cb6a85de075a5706a24c2013.tar.zst
freebsd-ports-gnome-5b768d22891831d2cb6a85de075a5706a24c2013.zip
Respect CC and CFLAGS
Reviewed by: obrien
Diffstat (limited to 'net/netcat')
-rw-r--r--net/netcat/files/patch-ab26
1 files changed, 26 insertions, 0 deletions
diff --git a/net/netcat/files/patch-ab b/net/netcat/files/patch-ab
new file mode 100644
index 000000000000..ccbfcea2abfd
--- /dev/null
+++ b/net/netcat/files/patch-ab
@@ -0,0 +1,26 @@
+--- Makefile.orig Wed Mar 20 13:46:06 1996
++++ Makefile Sun Apr 11 16:36:21 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"