diff options
author | schwarz <schwarz@pkgsrc.org> | 2006-03-11 17:41:59 +0000 |
---|---|---|
committer | schwarz <schwarz@pkgsrc.org> | 2006-03-11 17:41:59 +0000 |
commit | 8729aaecd9f1f1f0241c581ad4624c9a2754988e (patch) | |
tree | 09c91e38b152a2fbeb2d262b09173ce3fca3200a /graphics | |
parent | 46e65289e0a9b50845e0d8ed87af4bc041efadf7 (diff) | |
download | pkgsrc-8729aaecd9f1f1f0241c581ad4624c9a2754988e.tar.gz |
added a workaround for a bug with Apple's gcc-4.0.0
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/netpbm/hacks.mk | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/graphics/netpbm/hacks.mk b/graphics/netpbm/hacks.mk index 6a10a841053..2ae2ab983a9 100644 --- a/graphics/netpbm/hacks.mk +++ b/graphics/netpbm/hacks.mk @@ -1,4 +1,4 @@ -# $NetBSD: hacks.mk,v 1.3 2006/01/22 21:36:31 schwarz Exp $ +# $NetBSD: hacks.mk,v 1.4 2006/03/11 17:41:59 schwarz Exp $ .if !defined(NETPBM_HACKS_MK) NETPBM_HACKS_MK= # defined @@ -34,4 +34,21 @@ post-wrapper: # should match int8_t, int16_t, and int32_t (only) .endif +### [ Sun Mar 5 20:19:52 CET 2006 : schwarz ] +### work around bug in Apple's gcc-4.0.0 +### that shows up when compiling frame.c +### +.if ${OPSYS} == "Darwin" && ${PKGSRC_COMPILER} == "gcc" +_GCC_BUILD!= ${CC} --version|${GREP} '^powerpc-apple-darwin8-gcc-4\.0\.0.*build\ 4061' +. if !empty(_GCC_BUILD) +PKG_HACKS+= apple-gcc-4-bug +BUILDLINK_TRANSFORM+= rm:-finline-floor # unknown option to gcc-3.3 +BUILDLINK_TRANSFORM+= rm:-mpowerpc64 # prevent internal compiler error +# with gcc-3.3 when compiling exif.c +post-wrapper: + ${SED} -e s,/gcc,/gcc-3.3, ${WRKDIR}/.gcc/bin/gcc > ${WRKDIR}/.gcc/bin/gcc-3.3 && ${MV} -f ${WRKDIR}/.gcc/bin/gcc-3.3 ${WRKDIR}/.gcc/bin/gcc && ${CHMOD} a+rx ${WRKDIR}/.gcc/bin/gcc +# use gcc-3.3 instead of gcc-4.0.0 +. endif +.endif + .endif |