gkoehler bea053a8c6 Edit LINK_SPEC, fix static linking with ports-gcc
egcc -static was broken on most arches; the static binary wrongly
requested ld.so(1), but /usr/lib/rcrt0.o wants to do the relocation
without ld.so(1).  The fix is to drop ld.so,

    %{!static:-dynamic-linker /usr/libexec/ld.so}

Remove "%{!dynamic-linker:...}" because gcc -dynamic-linker is not an
option.  Correct "%{!r*:...}" to "%{!r:...}" because gcc -r doesn't
take an option argument.  Use "%{!nostdlib:-L/usr/lib}" on lld
arches, like base-gcc.

Edit the powerpc LINK_SPEC in rs6000/openbsd.h to be like the others.
Add "%{!nostdlib:-L/usr/lib}" so I can try lld on powerpc.  For now,
don't edit the powerpc64 LINK_SPEC.

ok pascal@ (maintainer)
2021-01-24 04:41:50 +00:00
..
2014-06-26 16:26:59 +00:00
2019-09-07 19:32:44 +00:00