summaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorjoerg <joerg>2013-10-28 23:42:18 +0000
committerjoerg <joerg>2013-10-28 23:42:18 +0000
commitf31ff94db24bb5763fd892c9a24a947280fb9ae2 (patch)
treec0ed94faf131c503e2ca555fba9a7647e099b9a5 /audio
parent783edaf4f5abed821c218c2bae5230ad775e6145 (diff)
downloadpkgsrc-f31ff94db24bb5763fd892c9a24a947280fb9ae2.tar.gz
Don't force the -lgcc_s use with Clang. Just expect the system is new
enough to have properly linked C++ runtime.
Diffstat (limited to 'audio')
-rw-r--r--audio/audacious-plugins/Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/audio/audacious-plugins/Makefile b/audio/audacious-plugins/Makefile
index 7aa5fa82a70..58906737a43 100644
--- a/audio/audacious-plugins/Makefile
+++ b/audio/audacious-plugins/Makefile
@@ -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 @@ COMMENT= Plugins for Audacious media player
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