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"], [
VLC_ADD_LDFLAGS([plugin mozilla],[-nostart]) AS_IF([test "${SYS}" = "beos"], [
else VLC_ADD_LDFLAGS([plugin mozilla],[-nostart])
AC_CACHE_CHECK([if \$CC accepts -shared], ], [
[ac_cv_ld_plugins], AC_CACHE_CHECK([if \$CC accepts -shared],
[CFLAGS="${CFLAGS_save} -shared" [ac_cv_ld_plugins],
AC_TRY_COMPILE([],, ac_cv_ld_plugins=yes, ac_cv_ld_plugins=no)]) [CFLAGS="${CFLAGS_save} -shared"
if test "${ac_cv_ld_plugins}" != "no"; then AC_TRY_COMPILE([],, ac_cv_ld_plugins=yes, ac_cv_ld_plugins=no)])
VLC_ADD_LDFLAGS([plugin mozilla],[-shared]) AS_IF([test "${ac_cv_ld_plugins}" != "no"], [
fi VLC_ADD_LDFLAGS([plugin mozilla],[-shared])
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