aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sim/common/common.m44
1 files changed, 4 insertions, 0 deletions
diff --git a/sim/common/common.m4 b/sim/common/common.m4
index f587754..215208d 100644
--- a/sim/common/common.m4
+++ b/sim/common/common.m4
@@ -54,6 +54,10 @@ AC_CHECK_FUNCS(getrusage time sigaction __setfpucw)
AC_CHECK_LIB(socket, bind)
AC_CHECK_LIB(nsl, gethostbyname)
+# BFD conditionally uses zlib, so we must link it in if libbfd does, by
+# using the same condition.
+AC_SEARCH_LIBS(zlibVersion, z, [AC_CHECK_HEADERS(zlib.h)])
+
. ${srcdir}/../../bfd/configure.host
dnl Standard (and optional) simulator options.