From 3443e11d6779d2e0c87040ca8b5cf11358be049c Mon Sep 17 00:00:00 2001 From: sketch Date: Sat, 13 Nov 2004 12:51:22 +0000 Subject: 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. --- multimedia/gst-plugins/Makefile.common | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'multimedia') 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 \ -- cgit v1.2.3