Commit a49795c9 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Don't use -shared with libtool

parent e4d731df
...@@ -993,17 +993,19 @@ fi ...@@ -993,17 +993,19 @@ fi
dnl Check for standard plugin linking flags dnl Check for standard plugin linking flags
dnl BeOS' gcc needs -nostart instead of -shared, even if -shared isn't harmful (just a warning) dnl BeOS' gcc needs -nostart instead of -shared, even if -shared isn't harmful (just a warning)
if test "${SYS}" = "beos"; then AS_IF([test "${enable_libtool}" = "no"], [
AS_IF([test "${SYS}" = "beos"], [
VLC_ADD_LDFLAGS([plugin mozilla],[-nostart]) VLC_ADD_LDFLAGS([plugin mozilla],[-nostart])
else ], [
AC_CACHE_CHECK([if \$CC accepts -shared], AC_CACHE_CHECK([if \$CC accepts -shared],
[ac_cv_ld_plugins], [ac_cv_ld_plugins],
[CFLAGS="${CFLAGS_save} -shared" [CFLAGS="${CFLAGS_save} -shared"
AC_TRY_COMPILE([],, ac_cv_ld_plugins=yes, ac_cv_ld_plugins=no)]) AC_TRY_COMPILE([],, ac_cv_ld_plugins=yes, ac_cv_ld_plugins=no)])
if test "${ac_cv_ld_plugins}" != "no"; then AS_IF([test "${ac_cv_ld_plugins}" != "no"], [
VLC_ADD_LDFLAGS([plugin mozilla],[-shared]) VLC_ADD_LDFLAGS([plugin mozilla],[-shared])
fi ])
fi ])
])
dnl Check for variadic macros dnl Check for variadic macros
AC_CACHE_CHECK([for variadic cpp macros], AC_CACHE_CHECK([for variadic cpp macros],
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment