[Buildroot] [PATCH v3 2/2] ngrep: fix static linking issue with libpcre

Peter Korsgaard jacmet at uclibc.org
Mon Nov 4 21:09:26 UTC 2013


>>>>> "Romain" == Romain Naour <romain.naour at openwide.fr> writes:

 > 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

 > Signed-off-by: Romain Naour <romain.naour at openwide.fr>
 > ---
 >  package/ngrep/ngrep-0003-fix-static-link.patch | 22 ++++++++++++++++++++++
 >  package/ngrep/ngrep.mk                         |  2 +-
 >  2 files changed, 23 insertions(+), 1 deletion(-)
 >  create mode 100644 package/ngrep/ngrep-0003-fix-static-link.patch

 > diff --git a/package/ngrep/ngrep-0003-fix-static-link.patch b/package/ngrep/ngrep-0003-fix-static-link.patch
 > new file mode 100644
 > index 0000000..6d70778
 > --- /dev/null
 > +++ b/package/ngrep/ngrep-0003-fix-static-link.patch
 > @@ -0,0 +1,22 @@
 > +fix static link
 > +Libraries must be placed before object files.

I guess you mean AFTER.

-- 
Bye, Peter Korsgaard


More information about the buildroot mailing list