Made libburn ready for building out-of-source. Thanks Ross Burton.

This commit is contained in:
Thomas Schmitt 2019-04-05 17:49:17 +02:00
parent d72fb13225
commit 1c06669465

View File

@ -53,12 +53,12 @@ dnl It tests whether -Wl,--version-script=... works with the compiler
AC_DEFUN([LIBBURN_ASSERT_VERS_LIBS], AC_DEFUN([LIBBURN_ASSERT_VERS_LIBS],
[ [
libburnia_save_LDFLAGS="$LDFLAGS" libburnia_save_LDFLAGS="$LDFLAGS"
LDFLAGS="$LDFLAGS -Wl,--version-script=libburn/libburn.ver" LDFLAGS="$LDFLAGS -Wl,--version-script=$srcdir/libburn/libburn.ver"
AC_TRY_LINK([#include <stdio.h>], [printf("Hello\n");], AC_TRY_LINK([#include <stdio.h>], [printf("Hello\n");],
[vers_libs_test="yes"], [vers_libs_test="no"]) [vers_libs_test="yes"], [vers_libs_test="no"])
if test x$vers_libs_test = xyes if test x$vers_libs_test = xyes
then then
LIBLDFLAGS="-Wl,--version-script=libburn/libburn.ver" LIBLDFLAGS="-Wl,--version-script=$srcdir/libburn/libburn.ver"
fi fi
LDFLAGS="$libburnia_save_LDFLAGS" LDFLAGS="$libburnia_save_LDFLAGS"
AC_SUBST(LIBLDFLAGS) AC_SUBST(LIBLDFLAGS)