diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac index ff1b007496..1fc9aec509 100644 --- a/configure.ac +++ b/configure.ac @@ -1521,16 +1521,20 @@ AS_IF([test x"$with_bfd" != "xno"], AS_IF([test -z "$bfd_ldlibs"], [unset ac_cv_lib_bfd_bfd_openr AC_CHECK_LIB([bfd], [bfd_openr], - [bfd_ldlibs="-lbfd -liberty"], [], [-liberty])]) + [bfd_ldlibs="-lbfd -ldl"], [], [-ldl])]) AS_IF([test -z "$bfd_ldlibs"], [unset ac_cv_lib_bfd_bfd_openr AC_CHECK_LIB([bfd], [bfd_openr], - [bfd_ldlibs="-lbfd -liberty -lz"], [], [-liberty -lz])]) + [bfd_ldlibs="-lbfd -ldl -liberty"], [], [-ldl -liberty])]) AS_IF([test -z "$bfd_ldlibs"], [unset ac_cv_lib_bfd_bfd_openr AC_CHECK_LIB([bfd], [bfd_openr], - [bfd_ldlibs="-lbfd -liberty -lz -lintl"], [], - [-liberty -lz -lintl])]) + [bfd_ldlibs="-lbfd -ldl -liberty -lz"], [], [-ldl -liberty -lz])]) + AS_IF([test -z "$bfd_ldlibs"], + [unset ac_cv_lib_bfd_bfd_openr + AC_CHECK_LIB([bfd], [bfd_openr], + [bfd_ldlibs="-lbfd -ldl -liberty -lz -lintl"], [], + [-ldl -liberty -lz -lintl])]) AS_IF([test -n "$bfd_ldlibs"], [bfd_available=true AC_DEFINE([HAS_LIBBFD])])]) |