summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorriastradh <riastradh@pkgsrc.org>2012-08-04 04:00:49 +0000
committerriastradh <riastradh@pkgsrc.org>2012-08-04 04:00:49 +0000
commite2972edcc93d17f8278fe201db0dc7de3cc40ca5 (patch)
tree0fc1d791415d8fa4fa8058b9a5ec464082ffc184 /graphics
parent00633aee9d24837763aef149539005df75cb7490 (diff)
downloadpkgsrc-e2972edcc93d17f8278fe201db0dc7de3cc40ca5.tar.gz
Fix Cairo hack on Mac OS X.
gcc-4.2 is residual from older Xcode installs. If you've installed only the Xcode with a bad compiler, the workaround is no good. But omitting -flto works around the problem too, so do that.
Diffstat (limited to 'graphics')
-rw-r--r--graphics/cairo/hacks.mk8
1 files changed, 4 insertions, 4 deletions
diff --git a/graphics/cairo/hacks.mk b/graphics/cairo/hacks.mk
index ec93e6218db..a4d7a97f73e 100644
--- a/graphics/cairo/hacks.mk
+++ b/graphics/cairo/hacks.mk
@@ -1,4 +1,4 @@
-# $NetBSD: hacks.mk,v 1.5 2012/06/14 19:53:07 bsiegert Exp $
+# $NetBSD: hacks.mk,v 1.6 2012/08/04 04:00:49 riastradh Exp $
.if !defined(CAIRO_HACKS_MK)
CAIRO_HACKS_MK= defined
@@ -9,9 +9,9 @@ CAIRO_HACKS_MK= defined
###
.if ${OPSYS} == "Darwin" && !empty(PKGSRC_COMPILER:Mgcc)
_BAD_GCC_BUILD!= ${CC} --version | (${GREP} -c 'i686-apple-darwin11-llvm-gcc-4\.2\ .*build\ 5658' || ${TRUE})
-. if ${_BAD_GCC_BUILD} == "1" && exists(/usr/bin/gcc-4.2)
-PKG_HACKS+= llvm-link
-CONFIGURE_ENV+= ac_cv_prog_CC=gcc-4.2
+. if ${_BAD_GCC_BUILD} == "1"
+PKG_HACKS+= llvm-lto-hack
+BUILDLINK_TRANSFORM+= rm:-flto
. endif
.endif