aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite
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
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')
-rw-r--r--ld/testsuite/ChangeLog4
-rw-r--r--ld/testsuite/ld-bootstrap/bootstrap.exp7
2 files changed, 11 insertions, 0 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index ff9ba66..47bb489 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2015-03-31 H.J. Lu <hongjiu.lu@intel.com>
+
+ * ld-bootstrap/bootstrap.exp (extralibs): Add -lz.
+
2015-03-30 H.J. Lu <hongjiu.lu@intel.com>
PR ld/18169
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*"]} {