pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/graphics/netpbm added a workaround for a bug with Appl...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/57f42f4a910a
branches:  trunk
changeset: 509571:57f42f4a910a
user:      schwarz <schwarz%pkgsrc.org@localhost>
date:      Sat Mar 11 17:41:59 2006 +0000

description:
added a workaround for a bug with Apple's gcc-4.0.0

diffstat:

 graphics/netpbm/hacks.mk |  19 ++++++++++++++++++-
 1 files changed, 18 insertions(+), 1 deletions(-)

diffs (31 lines):

diff -r 6c34ff2ad0d9 -r 57f42f4a910a graphics/netpbm/hacks.mk
--- a/graphics/netpbm/hacks.mk  Sat Mar 11 17:30:55 2006 +0000
+++ b/graphics/netpbm/hacks.mk  Sat Mar 11 17:41:59 2006 +0000
@@ -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 @@
 # 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



Home | Main Index | Thread Index | Old Index