This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH] bfd: install plugin-api.h as needed
- From: Mike Frysinger <vapier at gentoo dot org>
- To: binutils at sourceware dot org
- Cc: Dave Korn <dave dot korn at artimi dot com>, Dave Korn <dave dot korn dot cygwin at gmail dot com>
- Date: Wed, 1 Dec 2010 10:58:04 -0500
- Subject: [PATCH] bfd: install plugin-api.h as needed
Since people need plugin-api.h in order to build linker plugins, install
the header with the other library headers when plugin support is enabled.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2010-12-01 Mike Frysinger <vapier@gentoo.org>
* Makefile.am (!INSTALL_LIBBFD/bfdinclude_HEADERS): Set to nothing.
(PLUGINS/bfdinclude_HEADERS): Append plugin-api.h.
* Makefile.in: Regenerated.
---
bfd/Makefile.am | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/bfd/Makefile.am b/bfd/Makefile.am
index da14d57..9c454cc 100644
--- a/bfd/Makefile.am
+++ b/bfd/Makefile.am
@@ -23,6 +23,7 @@ else !INSTALL_LIBBFD
# Empty these so that the respective installation directories will not be created.
bfdlibdir =
bfdincludedir =
+bfdinclude_HEADERS =
rpath_bfdlibdir = @bfdlibdir@
noinst_LTLIBRARIES = libbfd.la
libbfd_la_LDFLAGS += -rpath $(rpath_bfdlibdir)
@@ -33,6 +34,7 @@ NO_WERROR = @NO_WERROR@
AM_CFLAGS = $(WARN_CFLAGS)
AM_CPPFLAGS = -DBINDIR='"$(bindir)"'
if PLUGINS
+bfdinclude_HEADERS += $(INCDIR)/plugin-api.h
LIBDL = -ldl
endif
--
1.7.3.1