aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-bootstrap
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2015-03-31 03:58:15 -0700
committerH.J. Lu <hjl.tools@gmail.com>2015-03-31 03:59:04 -0700
commitf24173ebf754866d4a1881a28dc2c07062c119d7 (patch)
treee45d9421f6d0ba52848cbd5571e967740f97290d /ld/testsuite/ld-bootstrap
parent0138187e9fc351c6d4615bbe2ab020a3ac646b50 (diff)
downloadfsf-binutils-gdb-f24173ebf754866d4a1881a28dc2c07062c119d7.zip
fsf-binutils-gdb-f24173ebf754866d4a1881a28dc2c07062c119d7.tar.gz
fsf-binutils-gdb-f24173ebf754866d4a1881a28dc2c07062c119d7.tar.bz2
Remove --with-zlib from ld
This patch removes --with-zlib from ld. ld/ * configure.ac (AM_ZLIB): Removed. * Makefile.in: Regenerated. * config.in: Likewise. * configure: Likewise. ld/testsuite/ * ld-bootstrap/bootstrap.exp (extralibs): Add -lz.
Diffstat (limited to 'ld/testsuite/ld-bootstrap')
-rw-r--r--ld/testsuite/ld-bootstrap/bootstrap.exp7
1 files changed, 7 insertions, 0 deletions
diff --git a/ld/testsuite/ld-bootstrap/bootstrap.exp b/ld/testsuite/ld-bootstrap/bootstrap.exp
index fe8031d..3b6eb84 100644
--- a/ld/testsuite/ld-bootstrap/bootstrap.exp
+++ b/ld/testsuite/ld-bootstrap/bootstrap.exp
@@ -120,6 +120,13 @@ foreach flags $test_flags {
}
}
+ # Check if the system's zlib library is used.
+ if {[file exists ../zlib/Makefile ]} then {
+ set extralibs "$extralibs -L../zlib -lz"
+ } else {
+ set extralibs "$extralibs -lz"
+ }
+
# Plugin support requires linking with libdl.
if { $plugins == "yes" } {
if { ![istarget "*-*-freebsd*"]} {