summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorminskim <minskim@pkgsrc.org>2011-11-16 03:45:03 +0000
committerminskim <minskim@pkgsrc.org>2011-11-16 03:45:03 +0000
commit5971a53ecd22eeddfe5d21e71fac3d7fce70e3ff (patch)
treed06a80a0d3f7c99440484924df9fd72a37eceaee /graphics
parente90aff3898f7073a266580bf61c942b70e6a7893 (diff)
downloadpkgsrc-5971a53ecd22eeddfe5d21e71fac3d7fce70e3ff.tar.gz
Use a stricter condition to enable the hack.
Diffstat (limited to 'graphics')
-rw-r--r--graphics/cairo/hacks.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/graphics/cairo/hacks.mk b/graphics/cairo/hacks.mk
index 751d5673e16..69924d520b8 100644
--- a/graphics/cairo/hacks.mk
+++ b/graphics/cairo/hacks.mk
@@ -1,4 +1,4 @@
-# $NetBSD: hacks.mk,v 1.1 2011/11/16 03:13:28 minskim Exp $
+# $NetBSD: hacks.mk,v 1.2 2011/11/16 03:45:03 minskim Exp $
.if !defined(CAIRO_HACKS_MK)
CAIRO_HACKS_MK= defined
@@ -9,7 +9,7 @@ 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"
+. if ${_BAD_GCC_BUILD} == "1" && exists(/usr/bin/gcc-4.2)
PKG_HACKS+= llvm-link
CONFIGURE_ENV+= ac_cv_prog_CC=gcc-4.2
. endif