summaryrefslogtreecommitdiff
path: root/multimedia
diff options
context:
space:
mode:
authorsketch <sketch>2004-11-13 12:51:22 +0000
committersketch <sketch>2004-11-13 12:51:22 +0000
commit6bbfbc733fffce32908191e1c77d0d00ac358f36 (patch)
treede797d47d560563a0f61126ddbb44edf63606946 /multimedia
parent1294426c4ca38ccb8ca35619e620727dafaee39e (diff)
downloadpkgsrc-6bbfbc733fffce32908191e1c77d0d00ac358f36.tar.gz
When using the SunPro compiler suite, the "cc" compiler understands the C99
__func__ declaration, but the "CC" (C++) compiler does not. The configure script for this package tests for __func__ but only invokes the C frontend, causing failures later as it uses both C and C++ compilers. Explicitly disable this functionality when using SunPro.
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/gst-plugins/Makefile.common9
1 files changed, 8 insertions, 1 deletions
diff --git a/multimedia/gst-plugins/Makefile.common b/multimedia/gst-plugins/Makefile.common
index 3d9ce2841b1..c98f5108946 100644
--- a/multimedia/gst-plugins/Makefile.common
+++ b/multimedia/gst-plugins/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.10 2004/10/28 14:22:48 jmmv Exp $
+# $NetBSD: Makefile.common,v 1.11 2004/11/13 12:51:22 sketch Exp $
#
DISTNAME= gst-plugins-0.8.5
@@ -31,6 +31,13 @@ CONFIGURE_ARGS+= --disable-xvideo
CONFIGURE_ARGS+= --disable-examples
CONFIGURE_ARGS+= --disable-tests
+.include "../../mk/compiler.mk"
+
+.if !empty(PKGSRC_COMPILER:Msunpro)
+# SunPro cc understands __func__ but CC does not, so disable explicitly.
+CONFIGURE_ENV+= have_func=no
+.endif
+
# Disable all drivers by default.
.for driver in a52dec \
aalib \