libretro / melonDS

DS emulator, sorta
GNU General Public License v3.0
39 stars 40 forks source link

Duplicate symbols when trying to build emscripten version into Retroarch #159

Open patrickcorrigan opened 2 years ago

patrickcorrigan commented 2 years ago

The core builds successfully using

emmake make -f Makefile platform=emscripten

When I then try to build the core into retroarch using

emmake ./dist-cores.sh emscripten

I get duplicate symbol errors

for example

wasm-ld: error: duplicate symbol: local_to_utf8_string_alloc
>>> defined in obj-emscripten/./libretro-common/encodings/encoding_utf.o
>>> defined in libretro_emscripten.bc

I think this may be because the --version-script flag doesn't seem to be supported by emscripten.

Any ideas on what I could try next to fix this :)?

Thank you