From 81113eb85f63767d98456ea4e77e20714a71051f Mon Sep 17 00:00:00 2001 From: recht Date: Sat, 29 May 2004 23:36:10 +0000 Subject: Reduce optimization level to -O on alpha to avoid compiler bugs. patch provided by Joachim Kuebart in PR pkg/25742 --- graphics/freetype2/Makefile | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'graphics/freetype2') 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" -- cgit v1.2.3