pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/multimedia/gst-plugins When using the SunPro compiler ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/547d5ca8daf3
branches:  trunk
changeset: 483505:547d5ca8daf3
user:      sketch <sketch%pkgsrc.org@localhost>
date:      Sat Nov 13 12:51:22 2004 +0000

description:
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:

 multimedia/gst-plugins/Makefile.common |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (23 lines):

diff -r db787ebeb20a -r 547d5ca8daf3 multimedia/gst-plugins/Makefile.common
--- a/multimedia/gst-plugins/Makefile.common    Sat Nov 13 11:15:31 2004 +0000
+++ b/multimedia/gst-plugins/Makefile.common    Sat Nov 13 12:51:22 2004 +0000
@@ -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-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 \



Home | Main Index | Thread Index | Old Index