summaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorwiz <wiz>2006-06-25 19:19:34 +0000
committerwiz <wiz>2006-06-25 19:19:34 +0000
commitd8ead53f57a6b59e7fe8715ceb4a4d047450aa96 (patch)
tree3864a3d6024ce35acc3789a77f289b500f0b91eb /audio
parent8b7117301315271d31f0a969c923820f4a478fae (diff)
downloadpkgsrc-d8ead53f57a6b59e7fe8715ceb4a4d047450aa96.tar.gz
When compiling with gcc, add -mmmx to CPPFLAGS to tell
the compiler that the code uses MMX. Fixes build with gcc4 on 3.99.21.
Diffstat (limited to 'audio')
-rw-r--r--audio/libvisual/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/audio/libvisual/Makefile b/audio/libvisual/Makefile
index 27b8feb3ff6..3ce0d10a716 100644
--- a/audio/libvisual/Makefile
+++ b/audio/libvisual/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.12 2006/05/13 12:33:04 joerg Exp $
+# $NetBSD: Makefile,v 1.13 2006/06/25 19:19:34 wiz Exp $
#
DISTNAME= libvisual-0.2.0
@@ -16,5 +16,11 @@ PKGCONFIG_OVERRIDE+= ${WRKSRC}/libvisual.pc.in
GNU_CONFIGURE= yes
USE_TOOLS+= pkg-config
+.include "../../mk/compiler.mk"
+
+.if !empty(CC_VERSION:Mgcc*)
+CPPFLAGS+= -mmmx
+.endif
+
.include "../../mk/x11.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"