]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Pass $JANSSON_LIBS and $ZSTD_LIBS to ld-bootstrap/bootrap.exp
authorRomain Geissler <romain.geissler@amadeus.com>
Sun, 5 Feb 2023 13:56:34 +0000 (13:56 +0000)
committerAlan Modra <amodra@gmail.com>
Mon, 6 Feb 2023 00:09:18 +0000 (10:39 +1030)
ld/Makefile.am
ld/Makefile.in
ld/testsuite/ld-bootstrap/bootstrap.exp

index 12b2c3c453fdbdb1fcac74bf5047bc4d0001483f..b3195b4be68d8315db5028af907ebdb1f1fbe3f4 100644 (file)
@@ -992,6 +992,7 @@ check-DEJAGNU: site.exp
                CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
                OFILES="$(OFILES)" BFDLIB="$(TESTBFDLIB)" CTFLIB="$(TESTCTFLIB) $(ZLIB)" \
                SFRAMELIB="$(TESTSFRAMELIB)" \
+               JANSSON_LIBS="$(JANSSON_LIBS)" ZSTD_LIBS="$(ZSTD_LIBS)" \
                LIBIBERTY="$(LIBIBERTY) $(LIBINTL)" LIBS="$(LIBS)" \
                DO_COMPARE="`echo '$(do_compare)' | sed -e 's,\\$$,,g'`" \
                $(RUNTESTFLAGS); \
index 3d5685d6bae1ce6258f053190da8d84f9eaba463..fe42256922896968f9a5f700142931dc6eb16e89 100644 (file)
@@ -2645,6 +2645,7 @@ check-DEJAGNU: site.exp
                CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
                OFILES="$(OFILES)" BFDLIB="$(TESTBFDLIB)" CTFLIB="$(TESTCTFLIB) $(ZLIB)" \
                SFRAMELIB="$(TESTSFRAMELIB)" \
+               JANSSON_LIBS="$(JANSSON_LIBS)" ZSTD_LIBS="$(ZSTD_LIBS)" \
                LIBIBERTY="$(LIBIBERTY) $(LIBINTL)" LIBS="$(LIBS)" \
                DO_COMPARE="`echo '$(do_compare)' | sed -e 's,\\$$,,g'`" \
                $(RUNTESTFLAGS); \
index 7e95ddd76e946d93b456236087107e75052ecd13..b189a0c7098b2a0118a22a6e9f1c80760adc3151 100644 (file)
@@ -162,13 +162,13 @@ foreach flags $test_flags {
     }
 
     if { [lindex [remote_exec build grep "-q \"HAVE_ZSTD 1\" config.h" ] 0] == 0 } then {
-       set extralibs "$extralibs -lzstd"
+       set extralibs "$extralibs $ZSTD_LIBS"
     }
 
     # Check if the system's jansson library is used. If so, the object files will
     # be using symbols from it, so link to it.
     if { [lindex [remote_exec build grep "-q \"HAVE_JANSSON 1\" config.h" ] 0] == 0 } then {
-       set extralibs "$extralibs -ljansson"
+       set extralibs "$extralibs $JANSSON_LIBS"
     }
 
     # Plugin support requires linking with libdl.