summaryrefslogtreecommitdiff
path: root/graphics/freetype2
diff options
context:
space:
mode:
authorrecht <recht@pkgsrc.org>2004-05-29 23:36:10 +0000
committerrecht <recht@pkgsrc.org>2004-05-29 23:36:10 +0000
commit81113eb85f63767d98456ea4e77e20714a71051f (patch)
tree060f8ec201962a54e7bcb245ec101a908d446c59 /graphics/freetype2
parent5cdcd78a385649576f4326101d33364e685cbb5d (diff)
downloadpkgsrc-81113eb85f63767d98456ea4e77e20714a71051f.tar.gz
Reduce optimization level to -O on alpha to avoid compiler bugs.
patch provided by Joachim Kuebart in PR pkg/25742
Diffstat (limited to 'graphics/freetype2')
-rw-r--r--graphics/freetype2/Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/graphics/freetype2/Makefile b/graphics/freetype2/Makefile
index ccbee247d8f..e772771e860 100644
--- a/graphics/freetype2/Makefile
+++ b/graphics/freetype2/Makefile
@@ -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 @@ CFLAGS+= -DTT_CONFIG_OPTION_BYTECODE_INTERPRETER
.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"