pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/audio/audacious-plugins Don't force the -lgcc_s use wi...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d62e6146f456
branches:  trunk
changeset: 625955:d62e6146f456
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Mon Oct 28 23:42:18 2013 +0000

description:
Don't force the -lgcc_s use with Clang. Just expect the system is new
enough to have properly linked C++ runtime.

diffstat:

 audio/audacious-plugins/Makefile |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (34 lines):

diff -r 65e979c8e4ef -r d62e6146f456 audio/audacious-plugins/Makefile
--- a/audio/audacious-plugins/Makefile  Mon Oct 28 20:49:14 2013 +0000
+++ b/audio/audacious-plugins/Makefile  Mon Oct 28 23:42:18 2013 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.49 2013/10/17 07:56:40 wiz Exp $
+# $NetBSD: Makefile,v 1.50 2013/10/28 23:42:18 joerg Exp $
 #
 
 DISTNAME=              audacious-plugins-1.5.1
@@ -14,18 +14,23 @@
 GNU_CONFIGURE=         yes
 USE_TOOLS+=            gmake intltool pkg-config msgfmt
 USE_LIBTOOL=           yes
+USE_LANGUAGES=         c c++
 
+.include "../../mk/compiler.mk"
+.if empty(PKGSRC_COMPILER:Mclang)
 # This should avoid an error like: libstdc++.so.6: Undefined PLT symbol "_Unwind_GetIP" on NetBSD i386 and maybe amd64, with gcc4 at least.
 # This seems to happen when libstdc++ gets linked in with the plug-ins and the code is not compiled with g++.
 # For a similar problem see http://archive.netbsd.se/?ml=netbsd-java&a=2007-08&m=4912662 :
+# Systems with Clang are supposed to be new enough to have a correctly linked
+# libstdc++.
 LDFLAGS.NetBSD+=       -lgcc_s
+.endif
 
 # From audio/bmp/Makefile:
 # XXX Workaround a crash during shutdown that happens when dlclose(3)ing
 # any open plugin.  libstdc++ gets dynamically linked in when the id3lib
 # library is loaded, and is the one causing problems.  See PR pkg/26846
 # for more information.
-USE_LANGUAGES=         c c++
 LDFLAGS.NetBSD+=       -lstdc++ -lm
 
 # cdaudio plugin complains about missing OSS at runtime



Home | Main Index | Thread Index | Old Index