[flac-dev] [PATCH 2/2] Use -fvisibility for osx targets too
Rafaël Carré
funman at videolan.org
Wed Nov 20 03:16:40 PST 2013
---
configure.ac | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index fa6f4fb..19306ed 100644
--- a/configure.ac
+++ b/configure.ac
@@ -405,7 +405,7 @@ if test x$ac_cv_c_compiler_gnu = xyes ; then
XIPH_ADD_CXXFLAGS([-Weffc++])
AC_LANG_POP([C++])
- if test "$GCC_MAJOR_VERSION" -ge 4 && test "$OBJ_FORMAT" = elf; then
+ if test "$GCC_MAJOR_VERSION" -ge 4 && test "$OBJ_FORMAT" = elf -o "$OBJ_FORMAT" = macho; then
CPPFLAGS="$CPPFLAGS -DFLAC__USE_VISIBILITY_ATTR"
CFLAGS="$CFLAGS -fvisibility=hidden"
CXXFLAGS="$CXXFLAGS -fvisibility=hidden"
--
1.8.3.4 (Apple Git-47)
More information about the flac-dev
mailing list