[Buildroot] [PATCH 1/1] libcap: fix static linking issue
Romain Naour
romain.naour at openwide.fr
Tue Oct 8 08:11:53 UTC 2013
Hi Thomas,
----- Mail original -----
| De: "Thomas Petazzoni" <thomas.petazzoni at free-electrons.com>
| À: "Romain Naour" <romain.naour at openwide.fr>
| Cc: "buildroot" <buildroot at busybox.net>
| Envoyé: Dimanche 6 Octobre 2013 23:29:54
| Objet: Re: [Buildroot] [PATCH 1/1] libcap: fix static linking issue
|
| Dear Romain Naour,
|
| On Sun, 06 Oct 2013 22:10:24 +0200, Romain Naour wrote:
| > Add -fPIC flag
| >
| > Fixes:
| > http://autobuild.buildroot.net/results/619bceb3491ecd2ed4e1ae552fdb237a0ed2fa47/
| >
| > Signed-off-by: Romain Naour <romain.naour at openwide.fr>
| > ---
| > package/libcap/libcap.mk | 7 ++++++-
| > 1 file changed, 6 insertions(+), 1 deletion(-)
| >
| > diff --git a/package/libcap/libcap.mk b/package/libcap/libcap.mk
| > index 16afaef..6248fed 100644
| > --- a/package/libcap/libcap.mk
| > +++ b/package/libcap/libcap.mk
| > @@ -25,10 +25,15 @@ endif
| > # we don't have host-attr
| > HOST_LIBCAP_DEPENDENCIES =
| >
| > +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.
Best regards,
Romain
|
| Thomas
| --
| Thomas Petazzoni, Free Electrons
| Embedded Linux, Kernel and Android engineering
| http://free-electrons.com
|
More information about the buildroot
mailing list