]> git.ipfire.org Git - thirdparty/lldpd.git/commit - NEWS
lib: don't rely on constructors
authorVincent Bernat <vincent@bernat.im>
Wed, 23 Mar 2016 07:33:11 +0000 (08:33 +0100)
committerVincent Bernat <vincent@bernat.im>
Wed, 23 Mar 2016 19:47:12 +0000 (20:47 +0100)
commitd954509eb76a18b2a96ec826cba90b9a093d05f9
tree2396d2971126212764813aa90e5efcccf4e5b07d
parent0c0b0c354497951cf816b2f21011812131e01506
lib: don't rely on constructors

Constructors do not work when compiled as a static libraries. Moreover,
some dynamic linkers have still support for constructors optional (for
example, uclibc). Since this can be tested only at runtime, this is not
possible to detect that during configure when crosscompiling.

Emulate this with our own glue code.
NEWS
configure.ac
m4/ctors.m4 [deleted file]
src/lib/Makefile.am
src/lib/atom.c
src/lib/atom.h
src/lib/atoms/config.c