[Buildroot] [PATCH 1/1] libcap: fix static linking issue
Thomas Petazzoni
thomas.petazzoni at free-electrons.com
Tue Oct 8 08:13:27 UTC 2013
Dear Romain Naour,
On Tue, 8 Oct 2013 10:11:53 +0200 (CEST), Romain Naour wrote:
> | > +ifeq ($(BR2_PREFER_STATIC_LIB),y)
> | > +LIBCAP_LDFLAGS=-fPIC
> | > +endif
> |
> | This seems really weird, because normally, we would expect exactly
> | the
> | opposite: position independent code is needed for shared libraries,
> | not
> | for static libraries.
>
> Ok, I'll take the problem from the beginning.
> Sorry for that mistake.
Note that I'm not sure about what I said, but having to build with
-fPIC in the static lib case seems really strange.
Thanks!
Thomas
--
Thomas Petazzoni, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
More information about the buildroot
mailing list