[vlc-devel] commit: Do not use visibility. It breaks #297 as well as libvlccore.sym ( Rémi Denis-Courmont )

git version control git at videolan.org
Mon May 26 17:52:35 CEST 2008


vlc | branch: master | Rémi Denis-Courmont <rem at videolan.org> | Mon May 26 18:44:47 2008 +0300| [f0892b807a54596cf854734ad5ea944d007c8eac]

Do not use visibility. It breaks #297 as well as libvlccore.sym

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f0892b807a54596cf854734ad5ea944d007c8eac
---

 configure.ac |   26 --------------------------
 1 files changed, 0 insertions(+), 26 deletions(-)

diff --git a/configure.ac b/configure.ac
index 6ce6094..48170e7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1066,32 +1066,6 @@ if test "${ac_cv_c_omit_frame_pointer}" != "no"; then
     CFLAGS_OPTIM_NODEBUG="${CFLAGS_OPTIM_NODEBUG} -fomit-frame-pointer"
 fi
 
-dnl Check for -fvisibility=hidden
-dnl Don't test on mingw32, because it is going to work with just a warning
-dnl even if it doesn't support it
-if test "${SYS}" != "mingw32"
-then
-AC_CACHE_CHECK([if \$CC accepts -fvisibility=hidden],
-    [ac_cv_c_visibility_hidden],
-    [CFLAGS="${CFLAGS_save} -fvisibility=hidden"
-     AC_TRY_COMPILE([],,ac_cv_c_visibility_hidden=yes, ac_cv_c_visibility_hidden=no)])
-if test "${ac_cv_c_visibility_hidden}" != "no"; then
-    VLC_ADD_CFLAGS([libvlc plugin],[-fvisibility=hidden])
-fi
-fi
-
-dnl Check for -fvisibility-inlines-hidden (breaks x86_64 linkers)
-dnl AC_LANG_PUSH(C++)
-dnl     AC_CACHE_CHECK([if \$CXX accepts -fvisibility-inlines-hidden],
-dnl         [ac_cv_c_visibility_inlines_hidden],
-dnl         [CXXFLAGS="${CXXFLAGS_save} -fvisibility-inlines-hidden"
-dnl          AC_TRY_COMPILE([],,ac_cv_c_visibility_inlines_hidden=yes, ac_cv_c_visibility_inlines_hidden=no)])
-dnl     if test "${ac_cv_c_visibility_inlines_hidden}" != "no"; then
-dnl         VLC_ADD_CXXFLAGS([libvlc plugin],[-fvisibility-inlines-hidden])
-dnl     fi
-dnl     CXXFLAGS="${CXXFLAGS_save}"
-dnl AC_LANG_POP(C++)
-
 dnl Check for -mdynamic-no-pic
 dnl AC_CACHE_CHECK([if \$CC accepts -mdynamic-no-pic],
 dnl     [ac_cv_c_dynamic_no_pic],




More information about the vlc-devel mailing list