CVSROOT:        /cvs
Module name:    ports
Changes by:     [email protected]        2021/01/23 21:41:51

Modified files:
        lang/gcc/8     : Makefile 
        lang/gcc/8/patches: patch-gcc_config_aarch64_openbsd_h 
                            patch-gcc_config_alpha_openbsd_h 
                            patch-gcc_config_arm_openbsd_h 
                            patch-gcc_config_i386_openbsdelf_h 
                            patch-gcc_config_mips_openbsd_h 
                            patch-gcc_config_pa_pa-openbsd_h 
                            patch-gcc_config_rs6000_openbsd_h 
                            patch-gcc_config_sparc_openbsd64_h 

Log message:
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)

Reply via email to