summaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorwiz <wiz>2006-08-07 11:22:27 +0000
committerwiz <wiz>2006-08-07 11:22:27 +0000
commit3480fdbae68dce0413d622bd4d3350f597906102 (patch)
tree66d8efd048d6eadf7d60212a67183847fbcb3ae7 /audio
parent29ddee28a66dd624ea03b5fca681704d3e676765 (diff)
downloadpkgsrc-3480fdbae68dce0413d622bd4d3350f597906102.tar.gz
Add same hack as for audio/bmp to work around background
noise problem with gcc4.
Diffstat (limited to 'audio')
-rw-r--r--audio/xmms/hacks.mk10
1 files changed, 10 insertions, 0 deletions
diff --git a/audio/xmms/hacks.mk b/audio/xmms/hacks.mk
new file mode 100644
index 00000000000..7c75d1f1f87
--- /dev/null
+++ b/audio/xmms/hacks.mk
@@ -0,0 +1,10 @@
+# $NetBSD: hacks.mk,v 1.1 2006/08/07 11:22:27 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