summaryrefslogtreecommitdiff
path: root/multimedia/gst-plugins/Makefile.common
diff options
context:
space:
mode:
authorsketch <sketch@pkgsrc.org>2004-11-13 12:51:22 +0000
committersketch <sketch@pkgsrc.org>2004-11-13 12:51:22 +0000
commit3443e11d6779d2e0c87040ca8b5cf11358be049c (patch)
treede797d47d560563a0f61126ddbb44edf63606946 /multimedia/gst-plugins/Makefile.common
parent831d2fee13bb87a031a3d3472927ae5765a5ebdb (diff)
downloadpkgsrc-3443e11d6779d2e0c87040ca8b5cf11358be049c.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/gst-plugins/Makefile.common')
-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 \