diff options
author | wiz <wiz@pkgsrc.org> | 2006-08-07 11:21:45 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2006-08-07 11:21:45 +0000 |
commit | 9ec60c8bf7ac2ca4b94f142bb3fa423f7c8387a6 (patch) | |
tree | eb6859edc03e7c6129a1267d8c7b1cf1b38140f6 | |
parent | 8a25ce73ea8b9b404a30b11785e6324dcb2a9092 (diff) | |
download | pkgsrc-9ec60c8bf7ac2ca4b94f142bb3fa423f7c8387a6.tar.gz |
Move gcc4 hack into hacks.mk
-rw-r--r-- | audio/bmp/Makefile | 9 | ||||
-rw-r--r-- | audio/bmp/hacks.mk | 10 |
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 |