]> git.sesse.net Git - vlc/blobdiff - bootstrap
libtool: prefer -export-dynamic over -export-regex, -export-symbols if compiler alrea...
[vlc] / bootstrap
index 01d0d11fe63fcf7aeac4b81ab536d05ecb08398f..f123d49824b8f13136021657d45e77cd60bdcea2 100755 (executable)
--- a/bootstrap
+++ b/bootstrap
@@ -224,8 +224,12 @@ include Modules.am
 LTLIBVLC = -L\$(top_builddir)/src -lvlc
 
 AM_LDFLAGS = -rpath '\$(libvlcdir)' -avoid-version \\
-       -module -no-undefined -shrext \$(LIBEXT) \\
-       -export-symbol-regex ^\$(VLC_ENTRY)\$\$
+       -module -no-undefined -shrext \$(LIBEXT) 
+if HAVE_COMPILER_EXPORT
+AM_LDFLAGS += -export-dynamic
+else
+AM_LDFLAGS += -export-symbol-regex ^\$(VLC_ENTRY)\$\$
+endif
 AM_LIBADD = \$(LTLIBVLC)
 
 all: all-modules