$OpenBSD: patch-modules_audio_output_Makefile_in,v 1.3 2008/03/02 02:27:04 jakemsr Exp $
--- modules/audio_output/Makefile.in.orig	Sun Feb 24 14:07:20 2008
+++ modules/audio_output/Makefile.in	Thu Feb 28 11:18:09 2008
@@ -715,6 +715,7 @@ libarts_plugin_la_LDFLAGS = `$(VLC_CONFIG) --libs plug
 	-rpath '$(libvlcdir)' -avoid-version -module -shrext $(LIBEXT)
 
 libarts_plugin_la_LIBADD = $(LTLIBVLC)
+libarts_plugin_la_EXTRALIBS = -lstdc++
 libarts_a_SOURCES = $(SOURCES_arts)
 libarts_builtin_la_SOURCES = $(SOURCES_arts)
 libarts_a_CFLAGS = `$(VLC_CONFIG) --cflags builtin pic arts`
@@ -2067,7 +2068,7 @@ all-modules:
 
 # Build a plugin with the adequate linker and linker's flags
 _plugin.a_plugin$(LIBEXT):
-	@mod="$*" ; mod=$${mod#lib} ; 	ldfl="`$(VLC_CONFIG) --libs plugin $$mod` $(LIBADD) -u $(SYMPREF)$(VLC_ENTRY)" ; 	case `$(VLC_CONFIG) --linkage $$mod` in \
+	@mod="$*" ; mod=$${mod#lib} ; 	ldfl="`$(VLC_CONFIG) --libs plugin $$mod` $(LIBADD) $($*_plugin_la_EXTRALIBS) -u $(SYMPREF)$(VLC_ENTRY)" ; 	case `$(VLC_CONFIG) --linkage $$mod` in \
 	  c++)  ld="$(CXXLINK)" ;; 	  objc) ld="$(OBJCLINK)" ;; 	  c|*)  ld="$(LINK)" ;; 	esac ; 	echo $$ld $< $$ldfl ; 	$$ld $< $$ldfl
 #ifneq (,$(findstring cygwin,$(host)))
 #	mv -f "$@.exe" "$@"
