libretro / libretro-super

Super repo for other libretro projects. Fetches, builds and installs.
MIT License
401 stars 282 forks source link

Dosbox core fails to build with GCC in Linux #1689

Open bugalo opened 1 year ago

bugalo commented 1 year ago

Using NOCLEAN=1 ./libretro-build.sh dosbox in linux, the core fails to build with errors like this:

error: ISO C++17 does not allow dynamic exception specifications

The core builds correctly using NOCLEAN=1 CXX="g++ -std=gnu++11" ./libretro-build.sh dosbox

Please modify the build script taking this into account.

Thanks.

bugalo commented 1 year ago

This can be fixed by modifying file libretro-dosbox/Makefile.libretro, and add after line 62 (section for platform unix) the following two lines:

    CXXFLAGS += -std=gnu++11
    CFLAGS += -std=gnu11