summaryrefslogtreecommitdiff
path: root/bfd/Makefile.am
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2019-09-26 16:20:35 +0930
committerAlan Modra <amodra@gmail.com>2019-09-26 19:51:18 +0930
commit41f37a6fb71f2a3de388108f5cdfca9cbe6e9d51 (patch)
tree9c440accb37851b3f1328671eff5ceac04f0e99c /bfd/Makefile.am
parentd2f617897b4789ea370559ddbf19d96ad5618128 (diff)
downloadbinutils-gdb-41f37a6fb71f2a3de388108f5cdfca9cbe6e9d51.tar.gz
PR24262, plugin search dir doesn't respect --libdir
bfd/ PR 24262 * Makefile.am (AM_CPPFLAGS): Add -DLIBDIR. * plugin.c (load_plugin): Search both ${libdir}/bfd-plugins and ${bindir}/../lib/bfd-plugins if different. * Makefile.in: Regenerate. ld/ PR 24262 * ld.texi (-plugin): Revert 2019-03-15 change.
Diffstat (limited to 'bfd/Makefile.am')
-rw-r--r--bfd/Makefile.am2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/Makefile.am b/bfd/Makefile.am
index f31a7345994..ca868e7c2e8 100644
--- a/bfd/Makefile.am
+++ b/bfd/Makefile.am
@@ -53,7 +53,7 @@ ZLIBINC = @zlibinc@
WARN_CFLAGS = @WARN_CFLAGS@
NO_WERROR = @NO_WERROR@
AM_CFLAGS = $(WARN_CFLAGS) $(ZLIBINC)
-AM_CPPFLAGS = -DBINDIR='"$(bindir)"'
+AM_CPPFLAGS = -DBINDIR='"$(bindir)"' -DLIBDIR='"$(libdir)"'
if PLUGINS
bfdinclude_HEADERS += $(INCDIR)/plugin-api.h
LIBDL = @lt_cv_dlopen_libs@