diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2014-12-04 08:28:33 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2014-12-04 08:28:33 +0000 |
commit | 82ddcccb08f72ea136dbb4629183a768139fedd6 (patch) | |
tree | 53ac9fd8e27b13b66dbdc4728148f0b5a5d9e34c /Build/source/libs/mpfr/configure | |
parent | c9e1e0da596ff4d40901c1b45a9a588c5f929c28 (diff) |
Lua(JIT)TeX: Hide all cairo, gmp, libpng, mpfr, pixman, poppler, zlib, and zziplib symbols
git-svn-id: svn://tug.org/texlive/trunk@35734 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/libs/mpfr/configure')
-rwxr-xr-x | Build/source/libs/mpfr/configure | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/Build/source/libs/mpfr/configure b/Build/source/libs/mpfr/configure index 5b59952ec21..0733c3c2e36 100755 --- a/Build/source/libs/mpfr/configure +++ b/Build/source/libs/mpfr/configure @@ -646,6 +646,7 @@ build_os build_vendor build_cpu build +VISIBILITY_CFLAGS LN_S RANLIB WARNING_CFLAGS @@ -4890,6 +4891,56 @@ $as_echo "no, using $LN_S" >&6; } fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for C to hide external symbols" >&5 +$as_echo_n "checking CFLAGS for C to hide external symbols... " >&6; } +if ${kpse_cv_visibility_cflags+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +kpse_cv_visibility_cflags=unknown +kpse_save_flags=$CFLAGS +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include <stdio.h> + extern void foo(void); + void foo(void){printf("foo\n");} +_ACEOF +# FIXME: Add tests for non-GNU compilers +for kpse_flag in '-fvisibility=hidden -fvisibility-inlines-hidden' '-fvisibility=hidden'; do + CFLAGS="$kpse_save_flags -Werror $kpse_flag" + if ac_fn_c_try_compile "$LINENO"; then : + kpse_cv_visibility_cflags=$kpse_flag; break +fi +rm -f core conftest.err conftest.$ac_objext +done +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_visibility_cflags" >&5 +$as_echo "$kpse_cv_visibility_cflags" >&6; } +CFLAGS=$kpse_save_flags +case $kpse_cv_visibility_cflags in #( + unknown) : + ;; #( + *) : + VISIBILITY_CFLAGS=$kpse_cv_visibility_cflags + ;; +esac + + + + + ac_config_headers="$ac_config_headers config.h" |