summaryrefslogtreecommitdiff
path: root/graphics/GraphicsMagick
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2014-08-14 10:28:28 +0000
committerjperkin <jperkin@pkgsrc.org>2014-08-14 10:28:28 +0000
commit7327872148c2b8b56866f3abd25a3224325eecf9 (patch)
tree754a86366ec5d5cb221bcf0016f876338f6c5bb4 /graphics/GraphicsMagick
parente0fb8ea8b432db57c9be1a8d9928a9bc59cdf094 (diff)
downloadpkgsrc-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/Makefile11
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"