diablodiab / libretro-scummvm-backend

libretro backend for scummvm
7 stars 8 forks source link

Pie compile error #4

Closed i30817 closed 2 years ago

i30817 commented 2 years ago

This happened recently at the end of compilation:

/usr/bin/ld: ../../../../base/libbase.a(plugins.o): relocation R_X86_64_PC32 against undefined symbol `g_HYPNO_type' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status

I know there is a workaround of passing -no-pie instead of -fPIC in the build but i'm not so enthusiastic about editing files before compiling since i'm auto updating the build.

i30817 commented 2 years ago

Eh, never mind. I think this was caused by calling './configure' or './make' in the main scummvm directory before trying the backend.