[Buildroot] [PATCH] iptables: disable static for dynamic builds

Gustavo Zacarias gustavo at zacarias.com.ar
Tue Oct 21 17:06:03 UTC 2014


On 10/21/2014 02:02 PM, Thomas Petazzoni wrote:

> Dear Gustavo Zacarias,
> 
> On Tue, 21 Oct 2014 13:58:14 -0300, Gustavo Zacarias wrote:
> 
>> +# Building static causes ugly warnings on some plugins
>> +IPTABLES_CONF_OPTS = --libexecdir=/usr/lib --with-kernel=$(STAGING_DIR)/usr \
>> +	$(if $(BR2_PREFER_STATIC_LIB),,--disable-static)
> 
> Quick related question: does iptables work properly for purely static
> builds?

I haven't tried in a while, but probably yes, since the effect of both
enables was quite similar, otherwise normally extensions live in
/usr/lib/xtables/* as dynamic objects (where you can add new ones, which
is what xtables-addons does besides adding new kernel modules, with the
scenario right now being every extension linked into the iptables
/usr/sbin/xtables-multi binary).
Regards.





More information about the buildroot mailing list