On Tue, Mar 26, 2013 at 3:45 PM, Pascal Stumpf <pascal.stu...@cubes.de> wrote:
...
>> Anyway, can we then just ignore the -pg option if it doesn't work for
>> shared instead of breaking the link? Or do you have a better solution?
>
> I could do that (if I figure out the correct gcc specs), sure.

Change this:
   %l %{pie:-pie} %{p|pg|nopie:-nopie}

to this:
   %{pie:-pie} %{p|pg|nopie:-nopie} %l

in the link_command spec.

...but I also like Mark's suggestion, to make -nopie not change the
link mode (shared-object vs executable).


Philip Guenther

Reply via email to