Commit 77d6d1ea authored by Damien Fouilleul's avatar Damien Fouilleul

-fvisibility-inlines-hidden breaks x86_64 ld linker

parent 740f0fd5
...@@ -1020,17 +1020,17 @@ if test "${ac_cv_c_visibility_hidden}" != "no"; then ...@@ -1020,17 +1020,17 @@ if test "${ac_cv_c_visibility_hidden}" != "no"; then
VLC_ADD_CFLAGS([libvlc plugin],[-fvisibility=hidden]) VLC_ADD_CFLAGS([libvlc plugin],[-fvisibility=hidden])
fi fi
dnl Check for -fvisibility-inlines-hidden dnl Check for -fvisibility-inlines-hidden (breaks x86_64 linkers)
AC_LANG_PUSH(C++) dnl AC_LANG_PUSH(C++)
AC_CACHE_CHECK([if \$CXX accepts -fvisibility-inlines-hidden], dnl AC_CACHE_CHECK([if \$CXX accepts -fvisibility-inlines-hidden],
[ac_cv_c_visibility_inlines_hidden], dnl [ac_cv_c_visibility_inlines_hidden],
[CXXFLAGS="${CXXFLAGS_save} -fvisibility-inlines-hidden" dnl [CXXFLAGS="${CXXFLAGS_save} -fvisibility-inlines-hidden"
AC_TRY_COMPILE([],,ac_cv_c_visibility_inlines_hidden=yes, ac_cv_c_visibility_inlines_hidden=no)]) dnl AC_TRY_COMPILE([],,ac_cv_c_visibility_inlines_hidden=yes, ac_cv_c_visibility_inlines_hidden=no)])
if test "${ac_cv_c_visibility_inlines_hidden}" != "no"; then dnl if test "${ac_cv_c_visibility_inlines_hidden}" != "no"; then
VLC_ADD_CXXFLAGS([libvlc plugin],[-fvisibility-inlines-hidden]) dnl VLC_ADD_CXXFLAGS([libvlc plugin],[-fvisibility-inlines-hidden])
fi dnl fi
CXXFLAGS="${CXXFLAGS_save}" dnl CXXFLAGS="${CXXFLAGS_save}"
AC_LANG_POP(C++) dnl AC_LANG_POP(C++)
dnl Check for -mdynamic-no-pic dnl Check for -mdynamic-no-pic
AC_CACHE_CHECK([if \$CC accepts -mdynamic-no-pic], AC_CACHE_CHECK([if \$CC accepts -mdynamic-no-pic],
......
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