Let configure perform linker test with --version-script if enabled

This commit is contained in:
2010-07-06 10:50:28 +02:00
parent fe45249e9e
commit e60171986b
2 changed files with 23 additions and 2 deletions

View File

@ -218,8 +218,14 @@ AC_ARG_ENABLE(versioned-libs,
[ --enable-versioned-libs Enable strict symbol encapsulation , default=yes],
, enable_versioned_libs=yes)
if test x$enable_versioned_libs = xyes; then
LDFLAGS="$LDFLAGS -Wl,--version-script=libisofs/libisofs.ver"
echo "enabled strict symbol encapsulation"
vers_libs_test=no
LIBISOFS_ASSERT_VERS_LIBS
if test x$vers_libs_test = xno
then
echo "disabled strict symbol encapsulation (test failed)"
else
echo "enabled strict symbol encapsulation"
fi
else
echo "disabled strict symbol encapsulation"
fi