6d3b4faca9
Adding -lpcre in LDFLAGS place the library before object files: gcc ... -lpcre -L.../sysroot/usr/lib -s -o ngrep ngrep.o -lpcap Makefile.in is patched to use @LIBS@ for adding -lpcre in the right place. Fixes: http://autobuild.buildroot.net/results/684/684a3bed28d13ef5e5156257aade3b9aff32f180 [Peter: fixup patch description] Signed-off-by: Romain Naour <romain.naour@openwide.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
23 lines
654 B
Makefile
23 lines
654 B
Makefile
################################################################################
|
|
#
|
|
# ngrep
|
|
#
|
|
################################################################################
|
|
|
|
NGREP_VERSION = 1.45
|
|
NGREP_SOURCE = ngrep-$(NGREP_VERSION).tar.bz2
|
|
NGREP_SITE = http://downloads.sourceforge.net/project/ngrep/ngrep/$(NGREP_VERSION)
|
|
NGREP_LICENSE = BSD-4c-like
|
|
NGREP_LICENSE_FILES = LICENSE.txt
|
|
NGREP_INSTALL_STAGING = YES
|
|
NGREP_CONF_ENV = LIBS="-lpcre"
|
|
NGREP_CONF_OPT = \
|
|
--with-pcap-includes=$(STAGING_DIR)/usr/include \
|
|
--enable-pcre \
|
|
--with-pcre=$(STAGING_DIR)/usr \
|
|
--disable-dropprivs
|
|
|
|
NGREP_DEPENDENCIES = libpcap pcre
|
|
|
|
$(eval $(autotools-package))
|