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 | 63fd6c12e61240754d7c49d8e421c524cd4e115a (patch) | |
tree | 0e07e8bc87aaa1ea0a144e816c20236fee86722f /archivers | |
parent | b9f3da84fefcd5c8c3776f2e3051b6844dd41a99 (diff) | |
download | pkgsrc-63fd6c12e61240754d7c49d8e421c524cd4e115a.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')
-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" |