summaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authorcheusov <cheusov>2011-08-26 13:39:55 +0000
committercheusov <cheusov>2011-08-26 13:39:55 +0000
commitedf1caa2a91b69ef46e954ead1c0fddd38273663 (patch)
tree0ee228663ebdbee504ed945246ce6cebadc1d382 /sysutils
parenta5d53beb708f3d592a33628d3065c2baf1d0a5e5 (diff)
downloadpkgsrc-edf1caa2a91b69ef46e954ead1c0fddd38273663.tar.gz
Fix build failure on Solaris-10 with gcc. PR 45287.
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/cdrtools/Makefile10
1 files changed, 4 insertions, 6 deletions
diff --git a/sysutils/cdrtools/Makefile b/sysutils/cdrtools/Makefile
index 842a8a1680a..aacfdc6893c 100644
--- a/sysutils/cdrtools/Makefile
+++ b/sysutils/cdrtools/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.81 2011/07/12 13:32:25 wiz Exp $
+# $NetBSD: Makefile,v 1.82 2011/08/26 13:39:55 cheusov Exp $
DISTNAME= cdrtools-3.01a05
PKGNAME= ${DISTNAME:S/a/alpha/:S/-pre/pre/}
@@ -39,11 +39,9 @@ MAKE_FLAGS+= GMAKE_NOWARN=true
# needs changes in the install target and PLIST
#MAKE_ENV+= LINKMODE=dynamic
-# if we're using a gcc which is named gcc, we need to set CCOM=gcc
-# in MAKE_ENV so the make infrastructure picks the right options.
-.if !empty(CC:M*gcc*)
-MAKE_ENV+= CCOM="gcc"
-.endif
+# Map PKGSRC_COMPILER to CCOM used by cdrtools build system.
+ccmap.gcc= gcc
+MAKE_FLAGS+= CCOM=${ccmap.${PKGSRC_COMPILER}:Ucc}
# allow us to override the default /etc/default/cdrecord by patching
# the documentation appropriately. Additionally, we also provide a