summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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