[Buildroot] [PATCH 1/1] package/erlang-jiffy: needs -fPIC

Fabrice Fontaine fontaine.fabrice at gmail.com
Tue Dec 29 10:14:46 UTC 2020


Le mar. 29 déc. 2020 à 10:43, Thomas Petazzoni
<thomas.petazzoni at bootlin.com> a écrit :
>
> On Tue, 29 Dec 2020 10:39:27 +0100
> Fabrice Fontaine <fontaine.fabrice at gmail.com> wrote:
>
> > This build failure is raised because of the -flto flag which is added
> > since version 1.0.0 and
> > https://github.com/davisp/jiffy/commit/feaf10f2d50e454f55a9d6b20c289031b0980503
> > It seems that -flto can't be used without -fPIC.
>
> This seems super odd. I'm not sure what would be the relationship
> between LTO and PIC...
Indeed but the build failure is fixed if I remove -flto from CFLAGS.
I'll try to understand why ...
>
> Thomas
> --
> Thomas Petazzoni, CTO, Bootlin
> Embedded Linux and Kernel engineering
> https://bootlin.com
Best Regards,

Fabrice


More information about the buildroot mailing list