diff options
| author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2025-11-22 14:50:10 +0100 |
|---|---|---|
| committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2025-11-22 14:50:10 +0100 |
| commit | 2e314136ed58b6860c667e379bef22190fe84aa2 (patch) | |
| tree | 21f897804c03c3419a0c015ace3bf9fb9c1b8e52 /m4/gcc4_visibility.m4 | |
| parent | 50d223b12c1319b4b9c4a5b8e34866c46996cb36 (diff) | |
New upstream version 5.2upstream/5.2upstream
Diffstat (limited to 'm4/gcc4_visibility.m4')
| -rw-r--r-- | m4/gcc4_visibility.m4 | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/m4/gcc4_visibility.m4 b/m4/gcc4_visibility.m4 index 708d42b..e58a0d7 100644 --- a/m4/gcc4_visibility.m4 +++ b/m4/gcc4_visibility.m4 @@ -19,3 +19,24 @@ AC_DEFUN([CHECK_GCC_FVISIBILITY], [ CFLAGS="$saved_CFLAGS" AC_LANG_POP([C]) ]) + +AC_DEFUN([CHECK_LD_SYMVERS], [ + AC_MSG_CHECKING([linker support for symbol maps]) + echo '{global:*;};' >conftest.map + saved_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map" + AC_LINK_IFELSE([AC_LANG_SOURCE([ int main() { return 0; } ])], + [with_ldsym=yes], [with_ldsym=no]) + LDFLAGS="$saved_LDFLAGS" + rm conftest.map + AM_CONDITIONAL([WITH_LDSYM], [test "$with_ldsym" = yes]) + AS_IF([test -n "$LD" && $LD -z help >/dev/null 2>/dev/null], [with_sun_ld=yes], [with_sun_ld=no]) + AM_CONDITIONAL([WITH_SUN_LD], [test "$with_sun_ld" = yes]) + AS_IF([test "$with_ldsym" = yes], [ + AC_MSG_RESULT([-Wl,--version-script]) + ], [test "$with_sun_ld" = yes], [ + AC_MSG_RESULT([-M]) + ], [ + AC_MSG_RESULT([no]) + ]) +]) |
