Prevented option --version-script with linker run of xorriso. By Matthias Klose.

This commit is contained in:
Thomas Schmitt 2016-04-19 06:45:07 +00:00
parent 276d1be403
commit c811a436f5
2 changed files with 5 additions and 3 deletions

View File

@ -12,7 +12,7 @@ ACLOCAL_AMFLAGS = -I ./
# Build libraries # Build libraries
libisoburn_libisoburn_la_LDFLAGS = \ libisoburn_libisoburn_la_LDFLAGS = \
-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) $(LIBLDFLAGS)
libisoburn_libisoburn_la_SOURCES = \ libisoburn_libisoburn_la_SOURCES = \
libisoburn/isoburn.h \ libisoburn/isoburn.h \
libisoburn/libisoburn.h \ libisoburn/libisoburn.h \

View File

@ -270,10 +270,12 @@ AC_DEFUN([LIBISOBURN_ASSERT_VERS_LIBS],
LDFLAGS="$LDFLAGS -Wl,--version-script=libisoburn/libisoburn.ver" LDFLAGS="$LDFLAGS -Wl,--version-script=libisoburn/libisoburn.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 = xno if test x$vers_libs_test = xyes
then then
LDFLAGS="$libburnia_save_LDFLAGS" LIBLDFLAGS="-Wl,--version-script=libisoburn/libisoburn.ver"
fi fi
LDFLAGS="$libburnia_save_LDFLAGS"
AC_SUBST(LIBLDFLAGS)
]) ])