On Wed, 2016-01-13 at 18:01 +0100, Kurt Roeckx wrote:
On Wed, Jan 13, 2016 at 05:22:35PM +0100, Mark Wielaard wrote:
Older glibc elf.h might not define the new ELF compression defines and types. If not just define them in libelf.h directly to make the libelf headers work on older glibc systems.
Also include a testcase to check the libelf headers build against the system elf.h.
That seems to fail with: CC system_elf_libelf_test-system-elf-libelf-test.o In file included from system-elf-libelf-test.c:22:0: ../libelf/gelf.h:32:20: fatal error: libelf.h: No such file or directory compilation terminated.
Ah, right :{ I failed to test with a system that doesn't have any version of elfutils headers installed. In my case the source gelf.h includes the system libelf.h... Even though just before the the source source libefl.h was correctly included. Hohum.
Lets see. I made the test try too many different things. Lets just make it test libelf.h on its own, without confusing it about gelf too. libelf.h is the important header in any case.
Does the attached work for you?
Thanks,
Mark