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 | 7327872148c2b8b56866f3abd25a3224325eecf9 (patch) | |
tree | 754a86366ec5d5cb221bcf0016f876338f6c5bb4 /graphics/GraphicsMagick | |
parent | e0fb8ea8b432db57c9be1a8d9928a9bc59cdf094 (diff) | |
download | pkgsrc-7327872148c2b8b56866f3abd25a3224325eecf9.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/GraphicsMagick')
-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" |