]> git.ipfire.org Git - thirdparty/lldpd.git/commit
build: check runtime support of constructor/destructor feature/test-runtime-ctors 139/head
authorVincent Bernat <vincent@bernat.im>
Tue, 6 Oct 2015 05:55:46 +0000 (07:55 +0200)
committerVincent Bernat <vincent@bernat.im>
Tue, 6 Oct 2015 05:55:46 +0000 (07:55 +0200)
commit9b4807169b191796ebe3e25410b865e2aabcd3eb
tree1351e3732e538ff26f2588745d5db305e51aa402
parent19a5c9b64c8c68755dee9d9c8fb8b7c5450d4f89
build: check runtime support of constructor/destructor

With some libc, we may have a compile-time support (through GCC), but
not a runtime support. For example, with uclibc, support for
constructors/destructors is optional. They can be enabled with
`CFLAGS=--uclibc-ctors` on some versions. On some others, they need to
be builtin by compiling uclibc with UCLIBC_CTOR_DTOR.

Unfortunately, cannot be tested when cross-compilation is in effect.
configure.ac
m4/ctors.m4 [new file with mode: 0644]