diff options
author | jperkin <jperkin@pkgsrc.org> | 2014-08-14 10:28:28 +0000 |
---|---|---|
committer | jperkin <jperkin@pkgsrc.org> | 2014-08-14 10:28:28 +0000 |
commit | 29feeee583a935a36e21ad17e9e0e7cbb7477339 (patch) | |
tree | 754a86366ec5d5cb221bcf0016f876338f6c5bb4 /graphics | |
parent | 0f7efb1395eee8cf85ed4f884c29ede9b0e36b9f (diff) | |
download | pkgsrc-29feeee583a935a36e21ad17e9e0e7cbb7477339.tar.gz |
On the suggestion of Bob Friesenhahn (GraphicsMagick maintainer) via private
mail, add -frename-registers to CFLAGS when building with GCC 4.* on x86_64
to work around GCC bug 53967 and gain a 2-3X speedup in certain sections.
Bump PKGREVISION.
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/GraphicsMagick/Makefile | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/graphics/GraphicsMagick/Makefile b/graphics/GraphicsMagick/Makefile index b5b53913600..18bdf7c0915 100644 --- a/graphics/GraphicsMagick/Makefile +++ b/graphics/GraphicsMagick/Makefile @@ -1,8 +1,8 @@ -# $NetBSD: Makefile,v 1.66 2014/05/29 23:36:36 wiz Exp $ +# $NetBSD: Makefile,v 1.67 2014/08/14 10:28:28 jperkin Exp $ .include "Makefile.common" -PKGREVISION= 2 +PKGREVISION= 3 MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://www.graphicsmagick.org/ @@ -32,6 +32,13 @@ TEST_TARGET= check FIND_PREFIX:= URW_FONTS_DIR=urw-fonts .include "../../mk/find-prefix.mk" +# Gain 2-3X speedup by working around GCC optimisation bug +# http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53967 +.include "../../mk/compiler.mk" +.if !empty(CC_VERSION:Mgcc-4.*) && ${MACHINE_ARCH} == "x86_64" +CFLAGS+= -frename-registers +.endif + .include "options.mk" .include "../../devel/libltdl/buildlink3.mk" |