diff options
author | hans <hans@pkgsrc.org> | 2012-03-20 14:19:15 +0000 |
---|---|---|
committer | hans <hans@pkgsrc.org> | 2012-03-20 14:19:15 +0000 |
commit | c7a485b9cf1e086af0913cec9e6df42f92c23713 (patch) | |
tree | 0e07e8bc87aaa1ea0a144e816c20236fee86722f /archivers/star | |
parent | 9eb12a68ddefc49061f5e07d4ef71bca9a1ed9db (diff) | |
download | pkgsrc-c7a485b9cf1e086af0913cec9e6df42f92c23713.tar.gz |
If gcc is used, set CCOM=gcc in MAKE_ENV to let the schily makefiles
know. Fixes build with gcc on SunOS and possibly other platforms.
Diffstat (limited to 'archivers/star')
-rw-r--r-- | archivers/star/Makefile | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/archivers/star/Makefile b/archivers/star/Makefile index 995f3df2988..d81488751dc 100644 --- a/archivers/star/Makefile +++ b/archivers/star/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.26 2012/01/30 02:01:40 sbd Exp $ +# $NetBSD: Makefile,v 1.27 2012/03/20 14:19:15 hans Exp $ # DISTNAME= star-1.4.3 @@ -19,13 +19,20 @@ MAKE_FLAGS+= MANDIR=${PKGMANDIR} .include "../../mk/bsd.prefs.mk" +.if !empty(CC:M*gcc*) +MAKE_ENV+= CCOM=gcc +.endif + pre-build: set -e; \ cd ${WRKSRC}/RULES && for i in arm mipsel x86_64 sparc64; do \ + ${LN} -s i386-netbsd-gcc.rul "$$i"-netbsd-gcc.rul; \ ${LN} -s i386-netbsd-cc.rul "$$i"-netbsd-cc.rul; done cd ${WRKSRC}/RULES && \ + ${LN} -s i586-linux-gcc.rul x86_64-linux-gcc.rul; \ ${LN} -s i586-linux-cc.rul x86_64-linux-cc.rul; \ ${LN} -s os-freebsd.id os-dragonfly.id; \ + ${LN} -s i386-freebsd-gcc.rul x86_64-freebsd-gcc.rul; \ ${LN} -s i386-freebsd-cc.rul x86_64-freebsd-cc.rul .include "../../mk/bsd.pkg.mk" |