diff options
author | grant <grant> | 2004-07-25 04:45:41 +0000 |
---|---|---|
committer | grant <grant> | 2004-07-25 04:45:41 +0000 |
commit | b9905e647b495c16064ffabf5ebc6b01a91fb656 (patch) | |
tree | cc921b4236dd509a397cfbfc6735257e444a5618 /security | |
parent | 95cd45009e24daf7b9fdc45243d3e8cf7819d922 (diff) | |
download | pkgsrc-b9905e647b495c16064ffabf5ebc6b01a91fb656.tar.gz |
only pass -traditional if using gcc.
Diffstat (limited to 'security')
-rw-r--r-- | security/cfs/Makefile | 7 |
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} |