Replace -ldl with @lt_cv_dlopen_libs@
authorH.J. Lu <hjl.tools@gmail.com>
Sat, 13 Oct 2012 14:17:14 +0000 (14:17 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Sat, 13 Oct 2012 14:17:14 +0000 (14:17 +0000)
* Makefile.am (LIBDL): Replace -ldl with @lt_cv_dlopen_libs@.
* configure.in (lt_cv_dlopen_libs): AC_SUBST.
* Makefile.in: Regenerated.
* configure: Likewise.

bfd/ChangeLog
bfd/Makefile.am
bfd/Makefile.in
bfd/configure
bfd/configure.in

index 6cfec506ea10d6e15acc9db24fd6739bc927c8da..170dc98c12e204de986ef35c89c68321ae7ecbd0 100644 (file)
@@ -1,3 +1,10 @@
+2012-10-13  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * Makefile.am (LIBDL): Replace -ldl with @lt_cv_dlopen_libs@.
+       * configure.in (lt_cv_dlopen_libs): AC_SUBST.
+       * Makefile.in: Regenerated.
+       * configure: Likewise.
+
 2012-10-08  Alan Modra  <amodra@gmail.com>
 
        PR binutils/14662
index 49f9662272f635f0081a415f50f2d08e0d332dac..2ac03e9577ca4a196d3b59f3614ba5a80cfdc73b 100644 (file)
@@ -35,7 +35,7 @@ AM_CFLAGS = $(WARN_CFLAGS)
 AM_CPPFLAGS = -DBINDIR='"$(bindir)"'
 if PLUGINS
 bfdinclude_HEADERS += $(INCDIR)/plugin-api.h
-LIBDL = -ldl
+LIBDL = @lt_cv_dlopen_libs@
 endif
 
 # bfd.h goes here, for now
index 5718fab60c3d25f3b189688514f8bfe36927cf18..7b0f8637e4758d1f0277eb861d4164dea5966147 100644 (file)
@@ -293,6 +293,7 @@ libdir = @libdir@
 libexecdir = @libexecdir@
 localedir = @localedir@
 localstatedir = @localstatedir@
+lt_cv_dlopen_libs = @lt_cv_dlopen_libs@
 mandir = @mandir@
 mkdir_p = @mkdir_p@
 oldincludedir = @oldincludedir@
@@ -336,7 +337,7 @@ libbfd_la_LDFLAGS = $(am__append_1) -release `cat libtool-soversion` \
 @INSTALL_LIBBFD_FALSE@noinst_LTLIBRARIES = libbfd.la
 AM_CFLAGS = $(WARN_CFLAGS)
 AM_CPPFLAGS = -DBINDIR='"$(bindir)"'
-@PLUGINS_TRUE@LIBDL = -ldl
+@PLUGINS_TRUE@LIBDL = @lt_cv_dlopen_libs@
 
 # bfd.h goes here, for now
 BFD_H = bfd.h
index d81719d32849d5e82ac546b88e9861c61d63da86..fdf5356bc000280301da1b82a444d490a328bb96 100755 (executable)
@@ -606,6 +606,7 @@ havevecs
 tdefaults
 bfd_ufile_ptr
 bfd_file_ptr
+lt_cv_dlopen_libs
 supports_plugins
 bfd_default_target_size
 bfd_machines
@@ -11414,7 +11415,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 11417 "configure"
+#line 11418 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -11520,7 +11521,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 11523 "configure"
+#line 11524 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -15633,6 +15634,7 @@ else
 fi
 
 
+
 # Determine the host dependant file_ptr a.k.a. off_t type.  In order
 # prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
 # fseeko, long.  This assumes that sizeof off_t is .ge. sizeof long.
index 612d032fb3f9667935d907682e924a2fb98a8c77..530bbcb348d88bccc27482f7810f2784a976a6c1 100644 (file)
@@ -1100,6 +1100,7 @@ else
   supports_plugins=0
 fi
 AC_SUBST(supports_plugins)
+AC_SUBST(lt_cv_dlopen_libs)
 
 # Determine the host dependant file_ptr a.k.a. off_t type.  In order
 # prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and