Monday, July 31, 2017

Re: emulators/mednafen force gcc fix

On Sun, Jul 30 2017, Jeremy Evans <jeremy@openbsd.org> wrote:
> Post clang switch, mednafen fails to link with:
>
> /usr/bin/ld: debug.o: relocation R_X86_64_32S against `a local symbol' can not be used when making a shared object; recompile with -fPIC
> debug.o: could not read symbols: Bad value c++: error: linker command failed with exit code 1 (use -v to see invocation)
>
> Despite the fact that COMPILER=gcc is already set, it still picks
> clang.

Looks like the current way to do that is to set COMPILER = gcc-only.

I guess there's no easy fix for clang?

--
jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF DDCC 0DFA 74AE 1524 E7EE

No comments:

Post a Comment