I'm being hit by the problem where the wrong linker is being invoked
when trying to build a program with swiftc for Android.
The problem seems to already be known and reported here, but the
solutions/workarounds don't fully work for me:
The only way I can make this work is by removing/renaming my system
installed /usr/bin/ld.gold so the process can't find it.
- Changing my PATH so another ld.gold is found first didn't affect
things. It looks like it always prefers /usr/bin/ld.gold.
- Adding the symlink for /usr/bin/armv7-none-linux-androideabi-ld.gold
didn't help (until I removed my /usr/bin/ld.gold
- Using the -use-ld= switch seemed to have absolutely no effect for
me. (I tried multiple things like armv7 to find an ld.armv7 and also
tried full explicit paths to the real android ld.gold)
Any ideas on how to fix this? I don't like having to remove my system ld.gold.