• Mike Frysinger's avatar
    support static-only systems · f2e27cfb
    Mike Frysinger authored
    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: default avatarMike Frysinger <vapier@gentoo.org>
    f2e27cfb
Makefile 2.33 KB