]> rtime.felk.cvut.cz Git - lisovros/iproute2_canprio.git/commit
support static-only systems
authorMike Frysinger <vapier@gentoo.org>
Fri, 6 Nov 2009 11:09:22 +0000 (06:09 -0500)
committerStephen Hemminger <stephen.hemminger@vyatta.com>
Tue, 10 Nov 2009 18:44:20 +0000 (10:44 -0800)
commitf2e27cfb016e2465cd3f07e0b556058060702578
treec8f111902c95f4d8624408e36aa35acdc3176cc9
parenta7a9ddbb675b7fbd184c3ab40817265b0b207a23
support static-only systems

The iptables code supports a "no shared libs" mode where it can be used
without requiring dlfcn related functionality.  This adds similar support
to iproute2 so that it can easily be used on systems like nommu Linux (but
obviously with a few limitations -- no dynamic plugins).

Rather than modify every location that uses dlfcn.h, I hooked the dlfcn.h
header with stub functions when shared library support is disabled.  Then
symbol lookup is done via a local static lookup table (which is generated
automatically at build time) so that internal symbols can be found.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Makefile
genl/Makefile
genl/static-syms.c [new file with mode: 0644]
include/dlfcn.h [new file with mode: 0644]
ip/Makefile
ip/static-syms.c [new file with mode: 0644]
tc/Makefile
tc/m_ipt.c
tc/static-syms.c [new file with mode: 0644]