[Buildroot] [PATCH 1/1] package/sngrep: fix static linking against libpcap

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Sun Jan 29 13:32:30 UTC 2017


Hello,

On Sat, 28 Jan 2017 18:07:59 +0100, Bernd Kuhls wrote:

> +SNGREP_CONF_ENV += \
> +	$(if $(BR2_STATIC_LIBS),LIBS="-lpcap `$(STAGING_DIR)/usr/bin/pcap-config --static --additional-libs`")

Why do you use --additional-libs instead of --libs? With --libs, you
wouldn't have to separately pass -lpcap, as it would be returned by
pcap-config.

Thanks,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com



More information about the buildroot mailing list