mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-06 12:09:26 +08:00
[PR 30082] Pass $JANSSON_LIBS and $ZSTD_LIBS to ld-bootstrap/bootrap.exp
This commit is contained in:
parent
f6d5083f59
commit
023b960d59
@ -994,6 +994,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); \
|
||||
|
@ -2648,6 +2648,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); \
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user