From c7a485b9cf1e086af0913cec9e6df42f92c23713 Mon Sep 17 00:00:00 2001 From: hans Date: Tue, 20 Mar 2012 14:19:15 +0000 Subject: 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. --- archivers/star/Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'archivers/star') 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" -- cgit v1.2.3