diff options
| author | Mark Wielaard <[email protected]> | 2019-01-18 14:18:22 +0100 |
|---|---|---|
| committer | Mark Wielaard <[email protected]> | 2019-01-31 23:51:17 +0100 |
| commit | b63007ed58d23afdd64a4e77a447a12b64c5bced (patch) | |
| tree | 75243cab4b80cd2bb2fffc5558e202a454240461 /libelf/Makefile.am | |
| parent | fe7d3f3635e66fe8ec1fde91f886857b0dea7d22 (diff) | |
configure: Add new --enable-install-elfh option.
We explicitly test (with system-elf-libelf) that our include headers
work with the system elf.h header. But it might be helpful to install
the elf.h file for a private install. Our elf.h header really is just
a copy of the latest glibc elf.h. But it might be newer and include
more constants than the system installed elf.h.
Add a new configure option --enable-install-elfh to install elf.h.
But warn when it is enabled for the default /usr or /usr/local prefix
because it might clash with the glibc/system elf.h header in that case.
Signed-off-by: Mark Wielaard <[email protected]>
Diffstat (limited to 'libelf/Makefile.am')
| -rw-r--r-- | libelf/Makefile.am | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/libelf/Makefile.am b/libelf/Makefile.am index ddaeaa2b..d5d63f73 100644 --- a/libelf/Makefile.am +++ b/libelf/Makefile.am @@ -39,6 +39,16 @@ noinst_LIBRARIES = libelf_pic.a noinst_PROGRAMS = $(noinst_LIBRARIES:_pic.a=.so) include_HEADERS = libelf.h gelf.h nlist.h +noinst_HEADERS = abstract.h common.h exttypes.h gelf_xlate.h libelfP.h \ + version_xlate.h gnuhash_xlate.h note_xlate.h dl-hash.h \ + chdr_xlate.h + +if INSTALL_ELFH +include_HEADERS += elf.h +else +noinst_HEADERS += elf.h +endif + pkginclude_HEADERS = elf-knowledge.h libelf_a_SOURCES = elf_version.c elf_hash.c elf_error.c elf_fill.c \ @@ -123,9 +133,6 @@ uninstall: uninstall-am rm -f $(DESTDIR)$(libdir)/libelf.so.$(VERSION) rm -f $(DESTDIR)$(libdir)/libelf.so -noinst_HEADERS = elf.h abstract.h common.h exttypes.h gelf_xlate.h libelfP.h \ - version_xlate.h gnuhash_xlate.h note_xlate.h dl-hash.h \ - chdr_xlate.h EXTRA_DIST = libelf.map CLEANFILES += $(am_libelf_pic_a_OBJECTS) libelf.so.$(VERSION) |
