summaryrefslogtreecommitdiff
path: root/audio/xmms
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2006-08-07 11:22:27 +0000
committerwiz <wiz@pkgsrc.org>2006-08-07 11:22:27 +0000
commite0b8ae7666c48d2651ea4160879540ea282a90bf (patch)
tree66d8efd048d6eadf7d60212a67183847fbcb3ae7 /audio/xmms
parent193cbc7eb75bcd64238aea39574ab01ce4eb1e40 (diff)
downloadpkgsrc-e0b8ae7666c48d2651ea4160879540ea282a90bf.tar.gz
Add same hack as for audio/bmp to work around background
noise problem with gcc4.
Diffstat (limited to 'audio/xmms')
-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