https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77464

--- Comment #10 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #5)
> (In reply to Manuel López-Ibáñez from comment #3)
> > Or at least give a clearer error that mentions -fPIC ...
> 
> Actually this is not a driver issue just a binutils issue if that. Why add
> no-pie anyways to the ldflags.

GCC controls the driver and decides what to pass to the linker.

(In reply to Andrew Pinski from comment #8)
> Basically -no-pie says you are now doing an executable overriding the
> previous -shared.  This is not a bug, you want -no-pie -shared.

This seems counter-intuitive to how other options work. The documentation says
nothing about it. Then we wonder why people complain that GCC is harder to
use/learn.

Reply via email to