summaryrefslogtreecommitdiff
path: root/archivers
diff options
context:
space:
mode:
authorhans <hans@pkgsrc.org>2012-03-20 14:19:15 +0000
committerhans <hans@pkgsrc.org>2012-03-20 14:19:15 +0000
commit63fd6c12e61240754d7c49d8e421c524cd4e115a (patch)
tree0e07e8bc87aaa1ea0a144e816c20236fee86722f /archivers
parentb9f3da84fefcd5c8c3776f2e3051b6844dd41a99 (diff)
downloadpkgsrc-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/Makefile9
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"