Line
Link Here
|
0 |
-- a/bfd/Makefile.in |
0 |
++ b/bfd/Makefile.in |
Lines 336-342
libbfd_la_LDFLAGS = $(am__append_1) -release `cat libtool-soversion` \
Link Here
|
336 |
@INSTALL_LIBBFD_FALSE@noinst_LTLIBRARIES = libbfd.la |
336 |
@INSTALL_LIBBFD_FALSE@noinst_LTLIBRARIES = libbfd.la |
337 |
AM_CFLAGS = $(WARN_CFLAGS) |
337 |
AM_CFLAGS = $(WARN_CFLAGS) |
338 |
AM_CPPFLAGS = -DBINDIR='"$(bindir)"' |
338 |
AM_CPPFLAGS = -DBINDIR='"$(bindir)"' |
339 |
@PLUGINS_TRUE@LIBDL = -ldl |
|
|
340 |
|
339 |
|
341 |
# bfd.h goes here, for now |
340 |
# bfd.h goes here, for now |
342 |
BFD_H = bfd.h |
341 |
BFD_H = bfd.h |
Lines 1054-1060
OFILES = $(BFD_BACKENDS) $(BFD_MACHINES) @COREFILE@ @bfd64_libs@
Link Here
|
1054 |
libbfd_la_SOURCES = $(BFD32_LIBS_CFILES) |
1053 |
libbfd_la_SOURCES = $(BFD32_LIBS_CFILES) |
1055 |
EXTRA_libbfd_la_SOURCES = $(CFILES) |
1054 |
EXTRA_libbfd_la_SOURCES = $(CFILES) |
1056 |
libbfd_la_DEPENDENCIES = $(OFILES) ofiles |
1055 |
libbfd_la_DEPENDENCIES = $(OFILES) ofiles |
1057 |
libbfd_la_LIBADD = `cat ofiles` @SHARED_LIBADD@ $(LIBDL) |
1056 |
libbfd_la_LIBADD = `cat ofiles` @SHARED_LIBADD@ |
1058 |
|
1057 |
|
1059 |
# libtool will build .libs/libbfd.a. We create libbfd.a in the build |
1058 |
# libtool will build .libs/libbfd.a. We create libbfd.a in the build |
1060 |
# directory so that we don't have to convert all the programs that use |
1059 |
# directory so that we don't have to convert all the programs that use |
1061 |
-- a/bfd/configure.in |
1060 |
++ b/bfd/configure.in |
Lines 23-31
AC_PROG_CC
Link Here
|
23 |
AM_CONDITIONAL(PLUGINS, test "$plugins" = "yes") |
23 |
AM_CONDITIONAL(PLUGINS, test "$plugins" = "yes") |
24 |
|
24 |
|
25 |
if test "$plugins" = "yes"; then |
25 |
if test "$plugins" = "yes"; then |
26 |
if test "$enable_dlopen" != "yes" ; then |
26 |
has_dlopen=yes |
|
|
27 |
# Check for dlopen support |
28 |
AC_CHECK_HEADER([dlfcn.h],[],[has_dlopen=no],[AC_INCLUDES_DEFAULT]) |
29 |
AC_SEARCH_LIBS([dlopen],[dl],[],[has_dlopen=no],[]) |
30 |
AC_CHECK_FUNCS([dlsym dlclose],[],[has_dlopen=no]) |
31 |
|
32 |
if test "$has_dlopen" != "yes" ; then |
27 |
AC_MSG_ERROR([ |
33 |
AC_MSG_ERROR([ |
28 |
Building BFD with plugin support requires a host that supports -ldl.]) |
34 |
Building BFD with plugin support requires a host that supports dlopen.]) |
29 |
fi |
35 |
fi |
30 |
enable_targets="$enable_targets plugin" |
36 |
enable_targets="$enable_targets plugin" |
31 |
fi |
37 |
fi |