- Properly produce CFLAGS without optimizations

PR:		139225
Suggested by:	Andriy Gapon
Submitted by:	Naram Qashat <cyberbotx@cyberbotx.com> (maintainer)
This commit is contained in:
Dmitry Marakasov 2009-10-01 13:24:08 +00:00
parent 70f2c79fe3
commit 9c49a4d2ba
2 changed files with 12 additions and 0 deletions

View file

@ -7,6 +7,7 @@
PORTNAME= fontforge
PORTVERSION= 20090923
PORTREVISION= 1
CATEGORIES= print
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-source
DISTFILES= ${EXTRACT_ONLY}

View file

@ -0,0 +1,11 @@
--- configure.orig 2009-09-23 19:55:22.000000000 -0400
+++ configure 2009-09-28 18:28:15.000000000 -0400
@@ -22843,7 +22843,7 @@
LDFLAGS="$LDFLAGS $gww_archlist"
fi
-CFLAGS_NOOPT=`echo $CFLAGS | sed -e s/-O2// | sed -e s/-O//`
+CFLAGS_NOOPT=`echo $CFLAGS | sed -e s/-O[0-9]*//g`
cp $ac_confdir/Makefile.dynamic.in $ac_confdir/Makefile.in
cp $ac_confdir/Unicode/Makefile.dynamic.in $ac_confdir/Unicode/Makefile.in