summaryrefslogtreecommitdiff
path: root/security/cfs
diff options
context:
space:
mode:
authorgrant <grant@pkgsrc.org>2004-07-25 04:45:41 +0000
committergrant <grant@pkgsrc.org>2004-07-25 04:45:41 +0000
commitff39f3579eb3b798ea7eb1b87cad9af76721b6bb (patch)
treecc921b4236dd509a397cfbfc6735257e444a5618 /security/cfs
parent72928b60b80b1537bf40bc4031680d0c39e8b943 (diff)
downloadpkgsrc-ff39f3579eb3b798ea7eb1b87cad9af76721b6bb.tar.gz
only pass -traditional if using gcc.
Diffstat (limited to 'security/cfs')
-rw-r--r--security/cfs/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/security/cfs/Makefile b/security/cfs/Makefile
index f0dbfec4322..04e84378a58 100644
--- a/security/cfs/Makefile
+++ b/security/cfs/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.14 2004/04/25 04:48:00 snj Exp $
+# $NetBSD: Makefile,v 1.15 2004/07/25 04:45:41 grant Exp $
DISTNAME= cfs-1.4.1
PKGREVISION= 1
@@ -29,6 +29,7 @@ CFS_SUBST+= cmkkey->cfs_mkkey CMKKEY->CFS_MKKEY
CFS_SUBST+= cname->cfs_name CNAME->CFS_NAME
CFS_SUBST+= cpasswd->cfs_passwd CPASSWD->CFS_PASSWD
+.include "../../mk/compiler.mk"
.include "../../mk/bsd.prefs.mk"
MAKE_ENV+= OPSYS="${OPSYS}"
@@ -50,7 +51,9 @@ CFS_SUBST+= getpassword->getpass
CFLAGS+= -DHAVE_GETPASS
CFS_BUILD_SCRIPT= ${WRKSRC}/netbsd_make_with_bad_rpcgen
.elif ${OPSYS} == "SunOS"
+. if !empty(CC_VERSION:Mgcc)
CFLAGS+= -traditional
+. endif
CFLAGS+= -DPROTOTYPES=1
CFLAGS+= -DSOLARIS2X -DPORTMAP -DPTMX
MAKE_ENV+= MAKE=${MAKE_PROGRAM}
@@ -59,7 +62,9 @@ MAKE_ENV+= COMPAT=
MAKE_ENV+= RPCOPTS=
CFS_BUILD_SCRIPT= ${WRKSRC}/make_with_bad_rpcgen
.elif ${OPSYS} == "Linux"
+. if !empty(CC_VERSION:Mgcc)
CFLAGS+= -traditional
+. endif
CFLAGS+= -DPROTOTYPES=1
CFLAGS+= -U__OPTIMIZE__ -U__STDC__ -Dd_fileno=d_ino
MAKE_ENV+= MAKE=${MAKE_PROGRAM}