diff options
author | Mike Frysinger <vapier@gentoo.org> | 2010-12-06 15:17:45 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2010-12-06 15:17:45 +0000 |
commit | f36af0fe8206fa7b04936506b359641055391319 (patch) | |
tree | 6fa7d463ba731fe2d004bd7890dbc418c0f13ac2 | |
parent | 4444a9624eb2e1f13835f1d98556c5d43846dc16 (diff) | |
download | binutils-f36af0fe8206fa7b04936506b359641055391319.tar.gz binutils-f36af0fe8206fa7b04936506b359641055391319.tar.bz2 binutils-f36af0fe8206fa7b04936506b359641055391319.zip |
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>
-rw-r--r-- | bfd/ChangeLog | 6 | ||||
-rw-r--r-- | bfd/Makefile.am | 2 | ||||
-rw-r--r-- | bfd/Makefile.in | 10 |
3 files changed, 15 insertions, 3 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 57ce083b74f..2a2949fc199 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +2010-12-06 Mike Frysinger <vapier@gentoo.org> + + * Makefile.am (!INSTALL_LIBBFD/bfdinclude_HEADERS): Set to nothing. + (PLUGINS/bfdinclude_HEADERS): Append plugin-api.h. + * Makefile.in: Regenerated. + 2010-11-30 Joel Sherrill <joel.sherrill@oarcorp.com> * config.bfd: Add sparc64-rtems. diff --git a/bfd/Makefile.am b/bfd/Makefile.am index 03c5fc786a0..343125374a2 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 diff --git a/bfd/Makefile.in b/bfd/Makefile.in index 7d3dfabb80c..183ae9691ac 100644 --- a/bfd/Makefile.in +++ b/bfd/Makefile.in @@ -38,6 +38,7 @@ build_triplet = @build@ host_triplet = @host@ target_triplet = @target@ @INSTALL_LIBBFD_FALSE@am__append_1 = -rpath $(rpath_bfdlibdir) +@PLUGINS_TRUE@am__append_2 = $(INCDIR)/plugin-api.h subdir = . DIST_COMMON = README ChangeLog $(srcdir)/Makefile.in \ $(srcdir)/Makefile.am $(top_srcdir)/configure \ @@ -136,8 +137,8 @@ RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ install-pdf-recursive install-ps-recursive install-recursive \ installcheck-recursive installdirs-recursive pdf-recursive \ ps-recursive uninstall-recursive -am__bfdinclude_HEADERS_DIST = bfd.h $(INCDIR)/ansidecl.h \ - $(INCDIR)/symcat.h $(INCDIR)/bfdlink.h +am__bfdinclude_HEADERS_DIST = $(INCDIR)/plugin-api.h bfd.h \ + $(INCDIR)/ansidecl.h $(INCDIR)/symcat.h $(INCDIR)/bfdlink.h HEADERS = $(bfdinclude_HEADERS) RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive @@ -327,7 +328,10 @@ bfddocdir = doc libbfd_la_LDFLAGS = $(am__append_1) -release `cat libtool-soversion` \ @SHARED_LDFLAGS@ $(am__empty) @INSTALL_LIBBFD_TRUE@bfdlib_LTLIBRARIES = libbfd.la -@INSTALL_LIBBFD_TRUE@bfdinclude_HEADERS = $(BFD_H) $(INCDIR)/ansidecl.h $(INCDIR)/symcat.h $(INCDIR)/bfdlink.h +@INSTALL_LIBBFD_FALSE@bfdinclude_HEADERS = $(am__append_2) +@INSTALL_LIBBFD_TRUE@bfdinclude_HEADERS = $(BFD_H) \ +@INSTALL_LIBBFD_TRUE@ $(INCDIR)/ansidecl.h $(INCDIR)/symcat.h \ +@INSTALL_LIBBFD_TRUE@ $(INCDIR)/bfdlink.h $(am__append_2) @INSTALL_LIBBFD_FALSE@rpath_bfdlibdir = @bfdlibdir@ @INSTALL_LIBBFD_FALSE@noinst_LTLIBRARIES = libbfd.la AM_CFLAGS = $(WARN_CFLAGS) |