[Buildroot] [PATCH v3 2/2] ngrep: fix static linking issue with libpcre
Romain Naour
romain.naour at openwide.fr
Mon Nov 4 23:05:06 UTC 2013
Le 04/11/2013 22:09, Peter Korsgaard a écrit :
>>>>>> "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.
>
Yes, copy and past error...
Thanks
Romain
More information about the buildroot
mailing list