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