diff --git a/package/sngrep/sngrep.mk b/package/sngrep/sngrep.mk index 52c8a2da4e..b82d8cefa7 100644 --- a/package/sngrep/sngrep.mk +++ b/package/sngrep/sngrep.mk @@ -11,6 +11,9 @@ SNGREP_LICENSE_FILES = LICENSE SNGREP_AUTORECONF = YES SNGREP_DEPENDENCIES = libpcap ncurses +SNGREP_CONF_ENV += \ + $(if $(BR2_STATIC_LIBS),LIBS="`$(STAGING_DIR)/usr/bin/pcap-config --static --libs`") + # our ncurses wchar support is not properly detected SNGREP_CONF_OPTS += --disable-unicode