summaryrefslogtreecommitdiff
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
commitb0e5e44d3d570286a1ab16dd58432254c6712ef3 (patch)
tree66d8efd048d6eadf7d60212a67183847fbcb3ae7
parent9ec60c8bf7ac2ca4b94f142bb3fa423f7c8387a6 (diff)
downloadpkgsrc-b0e5e44d3d570286a1ab16dd58432254c6712ef3.tar.gz
Add same hack as for audio/bmp to work around background
noise problem with gcc4.
-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