Build failure on macOS 10.15

Julien ÉLIE julien at trigofacile.com
Mon Nov 30 20:44:23 UTC 2020


Hi Russ,
>> Couldn't we have linkers that do not know how to link PIE executables?
>> The compiler would support PIE but the linker would not, so we would not
>> want to have CFLAGS with -fPIE if RRA_PROG_LD_FLAG([-pie]) failed.
>> That's why I thought setting both CFLAGS and LDFLAGS at the same time
>> would be better to handle that case (which maybe does not exist in
>> practice).
> 
> Oh, I see, and it's otherwise a bit awkward because you have to write:
> 
> RRA_PROG_CC_FLAG([-fPIE],
>       [save_CFLAGS=$CFLAGS
>        CFLAGS="$CFLAGS -fPIE"
>        RRA_PROG_LD_FLAG([-pie],
>           [LDFLAGS="$LDFLAGS -pie"],
>           [CFLAGS=$save_CFLAGS])])
> 
> That said, I haven't seen that combination, and I also don't think it's
> harmful to have the compiler generate PIE code even if the linker doesn't
> create PIE executables.  (There's a minor performance penalty, but I'm not
> sure it's worth worrying about for this edge case.)

All right, adopted then!
Thanks,

-- 
Julien ÉLIE

« Avec toutes les saletés que les gens jettent dans le fleuve, il n'y a
   plus de poissons ! Tout ce que je pêche depuis ce matin sont des
   amphores vides ! » (Astérix)


More information about the inn-workers mailing list