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

Don't BUILD_PIC when the platform doesn't need PIC

parent 078efe2d
...@@ -5231,17 +5231,18 @@ dnl Pic and shared libvlc stuff ...@@ -5231,17 +5231,18 @@ dnl Pic and shared libvlc stuff
dnl dnl
AS_IF([test "x${enable_shared_libvlc}" = "x"], [enable_shared_libvlc=no]) AS_IF([test "x${enable_shared_libvlc}" = "x"], [enable_shared_libvlc=no])
AM_CONDITIONAL(BUILD_SHARED, [test "${enable_shared_libvlc}" != "no"]) AM_CONDITIONAL(BUILD_SHARED, [test "${enable_shared_libvlc}" != "no"])
AM_CONDITIONAL(BUILD_PIC, [test "${build_pic}" = "yes" -o "${enable_shared_libvlc}" != "no"] )
AS_IF([test "${enable_shared_libvlc}" != "no" || test "${enable_libtool}" != "no"], [ AS_IF([test "${enable_shared_libvlc}" != "no" || test "${enable_libtool}" != "no"], [
AC_DEFINE(HAVE_SHARED_LIBVLC, 1, [Define to 1 if libvlc is built as a shared library.]) AC_DEFINE(HAVE_SHARED_LIBVLC, 1, [Define to 1 if libvlc is built as a shared library.])
]) ])
pic=no pic=no
AS_IF([test "${enable_shared_libvlc}" != "no" -o "${build_pic}" = "yes"], [pic=pic]) AS_IF([test "${build_pic}" = "yes"], [pic=pic])
AS_IF([test "${SYS}" = "mingw32"], [pic=no]) AS_IF([test "${SYS}" = "mingw32"], [pic=no])
AS_IF([test "${pic}" = "no"], [pic=]) AS_IF([test "${pic}" = "no"], [pic=])
AC_SUBST(pic) AC_SUBST(pic)
AM_CONDITIONAL(BUILD_PIC, [test "${build_pic}" = "yes" && test "x${pic}" = "xpic"])
dnl Import conditional variables generated by bootstrap dnl Import conditional variables generated by bootstrap
VLC_CONDITIONALS VLC_CONDITIONALS
......
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