aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2002-09-05 10:40:51 +0800
committerkris <kris@FreeBSD.org>2002-09-05 10:40:51 +0800
commit43a18240bf2878a945ca316821d28eb82ff42f4d (patch)
tree92fa7166b39d1613538e6c8a53056e9c8da94b02 /net-mgmt
parentde5b9438c670f5fb16c907fb24c33f992cb24177 (diff)
downloadfreebsd-ports-gnome-43a18240bf2878a945ca316821d28eb82ff42f4d.tar.gz
freebsd-ports-gnome-43a18240bf2878a945ca316821d28eb82ff42f4d.tar.zst
freebsd-ports-gnome-43a18240bf2878a945ca316821d28eb82ff42f4d.zip
Respect CC and CFLAGS and fix build on -current.
Diffstat (limited to 'net-mgmt')
-rw-r--r--net-mgmt/sendip/files/patch-Makefile17
1 files changed, 11 insertions, 6 deletions
diff --git a/net-mgmt/sendip/files/patch-Makefile b/net-mgmt/sendip/files/patch-Makefile
index 1462c2b195db..9f54f3dfac4f 100644
--- a/net-mgmt/sendip/files/patch-Makefile
+++ b/net-mgmt/sendip/files/patch-Makefile
@@ -1,13 +1,14 @@
---- Makefile Sun Feb 24 12:37:47 2002
-+++ Makefile Sat Mar 9 08:15:25 2002
-@@ -8,12 +8,13 @@
+--- Makefile.orig Sun Feb 24 04:37:47 2002
++++ Makefile Wed Sep 4 19:40:15 2002
+@@ -8,15 +8,16 @@
#For Solaris, you may need
#INSTALL=/usr/ucb/install
-CFLAGS= -fPIC -pipe -Wall -Wpointer-arith -Wwrite-strings \
-+CFLAGS= -fPIC -fsigned-char -pipe -Wall -Wpointer-arith -Wwrite-strings \
++CFLAGS+= -fPIC -fsigned-char -Wall -Wpointer-arith -Wwrite-strings \
-Wstrict-prototypes -Wnested-externs -Winline -Werror -g \
- -DSENDIP_LIBS=\"$(LIBDIR)\"
+- -DSENDIP_LIBS=\"$(LIBDIR)\"
++ -DSENDIP_LIBS=\"$(LIBDIR)\" -DHAVE_STRING_H=1
#-Wcast-align causes problems on solaris, but not serious ones
LDFLAGS= -g -rdynamic -lm
-LDFLAGS_SOLARIS= -g -lsocket -lnsl -lm
@@ -15,4 +16,8 @@
+LDFLAGS_SOLARIS= -g -lsocket -lnsl -lm -ldl
LDFLAGS_LINUX= -g -rdynamic -ldl -lm
LIBCFLAGS= -shared
- CC= gcc
+-CC= gcc
++CC?= cc
+
+ PROGS= sendip
+ PROTOS= ipv4.so ipv6.so icmp.so tcp.so udp.so rip.so bgp.so ntp.so #dns.so