diff options
author | jperkin <jperkin@pkgsrc.org> | 2014-08-14 15:23:59 +0000 |
---|---|---|
committer | jperkin <jperkin@pkgsrc.org> | 2014-08-14 15:23:59 +0000 |
commit | e938115a8063b6c4c40d88261e4586e1f7baa824 (patch) | |
tree | ead80c348ad12cb9981e51adbd0af528142d67ba /graphics/GraphicsMagick | |
parent | 7cbbc9c5ddb413d88f556c9e38e48a3ee8842fea (diff) | |
download | pkgsrc-e938115a8063b6c4c40d88261e4586e1f7baa824.tar.gz |
Move GCC optimisation bug workaround to hacks.mk
Diffstat (limited to 'graphics/GraphicsMagick')
-rw-r--r-- | graphics/GraphicsMagick/Makefile | 9 | ||||
-rw-r--r-- | graphics/GraphicsMagick/hacks.mk | 14 |
2 files changed, 15 insertions, 8 deletions
diff --git a/graphics/GraphicsMagick/Makefile b/graphics/GraphicsMagick/Makefile index 18bdf7c0915..d561e826ed2 100644 --- a/graphics/GraphicsMagick/Makefile +++ b/graphics/GraphicsMagick/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.67 2014/08/14 10:28:28 jperkin Exp $ +# $NetBSD: Makefile,v 1.68 2014/08/14 15:23:59 jperkin Exp $ .include "Makefile.common" @@ -32,13 +32,6 @@ 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" diff --git a/graphics/GraphicsMagick/hacks.mk b/graphics/GraphicsMagick/hacks.mk new file mode 100644 index 00000000000..faa7a749690 --- /dev/null +++ b/graphics/GraphicsMagick/hacks.mk @@ -0,0 +1,14 @@ +# $NetBSD: hacks.mk,v 1.1 2014/08/14 15:23:59 jperkin Exp $ + +.if !defined(GRAPHICSMAGICK_HACKS_MK) +GRAPHICSMAGICK_HACKS_MK= # defined + +# 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" +PKG_HACKS+= frename-registers +CFLAGS+= -frename-registers +.endif + +.endif |