pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/graphics/freetype2 Reduce optimization level to -O on ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f42da7e18355
branches:  trunk
changeset: 475933:f42da7e18355
user:      recht <recht%pkgsrc.org@localhost>
date:      Sat May 29 23:36:10 2004 +0000

description:
Reduce optimization level to -O on alpha to avoid compiler bugs.
patch provided by Joachim Kuebart in PR pkg/25742

diffstat:

 graphics/freetype2/Makefile |  12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diffs (26 lines):

diff -r 1cc6d34fe157 -r f42da7e18355 graphics/freetype2/Makefile
--- a/graphics/freetype2/Makefile       Sat May 29 23:33:59 2004 +0000
+++ b/graphics/freetype2/Makefile       Sat May 29 23:36:10 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.32 2004/05/15 11:17:14 grant Exp $
+# $NetBSD: Makefile,v 1.33 2004/05/29 23:36:10 recht Exp $
 #
 
 DISTNAME=      freetype-2.1.8
@@ -35,6 +35,16 @@
 .endif
 BUILD_DEFS+= MKTTINTERP
 
+# reduce optimization level on alpha to avoid compiler bugs
+.if ${OPSYS} == "NetBSD"
+.  if ${MACHINE_ARCH} == "alpha"
+CPPFLAGS:=     ${CPPFLAGS:C/-O[0-9]*/-O/g}
+CFLAGS:=       ${CFLAGS:C/-O[0-9]*/-O/g}
+CONFIGURE_ENV+=        CPPFLAGS="${CPPFLAGS}"
+CONFIGURE_ENV+=        CFLAGS="${CFLAGS}"
+.  endif
+.endif
+
 post-configure:
        cd ${WRKSRC} && ${LN} -s builds/unix/unix.mk config.mk
 .if ${OPSYS} == "IRIX"



Home | Main Index | Thread Index | Old Index