Prevented option --version-script with linker runs of binaries. By Matthias Klose.

This commit is contained in:
2016-04-19 07:05:36 +00:00
parent 6e5d3dc2d1
commit e631f2d977
2 changed files with 6 additions and 4 deletions

View File

@ -56,12 +56,14 @@ AC_DEFUN([LIBBURN_ASSERT_VERS_LIBS],
LDFLAGS="$LDFLAGS -Wl,--version-script=libburn/libburn.ver"
AC_TRY_LINK([#include <stdio.h>], [printf("Hello\n");],
[vers_libs_test="yes"], [vers_libs_test="no"])
if test x$vers_libs_test = xno
if test x$vers_libs_test = xyes
then
LDFLAGS="$libburnia_save_LDFLAGS"
LIBLDFLAGS="-Wl,--version-script=libburn/libburn.ver"
fi
LDFLAGS="$libburnia_save_LDFLAGS"
AC_SUBST(LIBLDFLAGS)
])
dnl LIBBURNIA_SET_PKGCONFIG determines the install directory for the *.pc file.
dnl Important: Must be performed _after_ TARGET_SHIZZLE