ngrep: fix static linking issue with libpcre
authorRomain Naour <romain.naour@openwide.fr>
Sat, 2 Nov 2013 15:51:12 +0000 (16:51 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Mon, 4 Nov 2013 20:55:17 +0000 (21:55 +0100)
commit6d3b4faca914cde10e4238b3cca45f680eaa41b9
tree56c8c7676c10a99cf14bd7174efbf9bf56e408e2
parentc9d2b23ce419a8d568a2a794149a9795186d586d
ngrep: fix static linking issue with libpcre

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>
package/ngrep/ngrep-0003-fix-static-link.patch [new file with mode: 0644]
package/ngrep/ngrep.mk