diff options
| author | Ulf Hermann <[email protected]> | 2017-03-08 10:54:51 +0100 |
|---|---|---|
| committer | Ulf Hermann <[email protected]> | 2017-05-02 13:44:35 +0000 |
| commit | dbb67af24f5c16681b299d288cf9aa4e4dd9bd25 (patch) | |
| tree | 9eaa8981996cf53dfc55b5c642201b332de77339 /tests | |
| parent | 46a61aa553eb304f399ac2f62c96ad2adbeda3c0 (diff) | |
Add a "selfcontained" mode to provide missing headers on windows
On windows there is no features.h, uid_t, gid_t, mode_t, and pid_t are
not defined and there is also no elf.h. To make it possible to build
other software against libelf and libdw, install our own version of
elf.h, and a bare-bones features.h that provides exactly the above
declarations.
Change-Id: I9df3c8cbffe431b8b6834dbd2246e38df4f5e172
Reviewed-by: Christian Kandeler <[email protected]>
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/Makefile.am | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am index d801681f..2e80b8b9 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -502,9 +502,15 @@ emptyfile_LDADD = $(libelf) $(libgnu) vendorelf_LDADD = $(libelf) $(libgnu) fillfile_LDADD = $(libelf) $(libgnu) +if SELFCONTAINED +# In self contained mode we cannot expect a system elf header. +# Use our own then +system_elf_libelf_test_CPPFLAGS = -I$(top_srcdir)/libelf +else # We want to test the libelf header against the system elf.h header. # Don't include any -I CPPFLAGS. system_elf_libelf_test_CPPFLAGS = +endif if USE_GNULIB system_elf_libelf_test_CPPFLAGS += -I$(top_srcdir)/libgnu -I$(top_builddir)/libgnu endif |
