aboutsummaryrefslogtreecommitdiff
path: root/sysutils/pftop
diff options
context:
space:
mode:
authorMax Laier <mlaier@FreeBSD.org>2008-04-27 18:32:02 +0000
committerMax Laier <mlaier@FreeBSD.org>2008-04-27 18:32:02 +0000
commitd28f8ae10812e1fb777cc063e30801971365aa1e (patch)
tree11ac3ed3a8e1234c74ad7e92c2476c73a2b0f158 /sysutils/pftop
parent00cdab0b6b41a3e14a7590f273a43d1a6411079f (diff)
downloadports-d28f8ae10812e1fb777cc063e30801971365aa1e.tar.gz
ports-d28f8ae10812e1fb777cc063e30801971365aa1e.zip
Manually export CC and CFLAGS to MAKE_ENV and have __MAKE_CONF point to
/dev/null. The latter is a problem because the port's Makefile uses the bsd.*.mk infrastructure. This works around several problems people were having when setting CFLAGS[1] in make.conf or CC[2] on the command line. PR: ports/122943 Reported-by: many[1], Frank Fenor[2]
Notes
Notes: svn path=/head/; revision=212108
Diffstat (limited to 'sysutils/pftop')
-rw-r--r--sysutils/pftop/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/sysutils/pftop/Makefile b/sysutils/pftop/Makefile
index f109893c3af9..0addf7cd8ca0 100644
--- a/sysutils/pftop/Makefile
+++ b/sysutils/pftop/Makefile
@@ -40,6 +40,8 @@ MAKE_ARGS= LOCALBASE="${PREFIX}" OSLEVEL=41
CFLAGS+= -DHAVE_ALTQ=1
.endif
+MAKE_ENV+= CC="${CC}" CFLAGS="${CFLAGS}" __MAKE_CONF=/dev/null
+
PLIST_FILES= sbin/pftop
post-patch: