summaryrefslogtreecommitdiff
path: root/audio/bmp
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2006-08-07 11:21:45 +0000
committerwiz <wiz@pkgsrc.org>2006-08-07 11:21:45 +0000
commit193cbc7eb75bcd64238aea39574ab01ce4eb1e40 (patch)
treeeb6859edc03e7c6129a1267d8c7b1cf1b38140f6 /audio/bmp
parent28c665f99190e7c42a3f939d65edb33a6697d461 (diff)
downloadpkgsrc-193cbc7eb75bcd64238aea39574ab01ce4eb1e40.tar.gz
Move gcc4 hack into hacks.mk
Diffstat (limited to 'audio/bmp')
-rw-r--r--audio/bmp/Makefile9
-rw-r--r--audio/bmp/hacks.mk10
2 files changed, 11 insertions, 8 deletions
diff --git a/audio/bmp/Makefile b/audio/bmp/Makefile
index 3395e277d4a..b464909ba1c 100644
--- a/audio/bmp/Makefile
+++ b/audio/bmp/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.18 2006/07/31 21:43:55 jmmv Exp $
+# $NetBSD: Makefile,v 1.19 2006/08/07 11:21:45 wiz Exp $
#
BMP_ENABLE_ENCODERS= yes
@@ -27,10 +27,3 @@ LDFLAGS.NetBSD+= -lstdc++ -lm
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
.include "../../mk/bsd.pkg.mk"
-
-# gcc 4.x generates code that produces background noise during playback.
-# Disabling optimizations when using this compiler solves the problem.
-.if !empty(CC_VERSION:Mgcc-4*)
-CFLAGS+= -O0
-CXXFLAGS+= -O0
-.endif
diff --git a/audio/bmp/hacks.mk b/audio/bmp/hacks.mk
new file mode 100644
index 00000000000..e5b9cce34ef
--- /dev/null
+++ b/audio/bmp/hacks.mk
@@ -0,0 +1,10 @@
+# $NetBSD: hacks.mk,v 1.1 2006/08/07 11:21:45 wiz Exp $
+
+.include "../../mk/compiler.mk"
+
+# gcc 4.x generates code that produces background noise during playback.
+# Disabling optimizations when using this compiler solves the problem.
+.if !empty(CC_VERSION:Mgcc-4*)
+CFLAGS+= -O0
+CXXFLAGS+= -O0
+.endif