Open snigel opened 7 years ago
@snigel
Are these still problems? If so can you report them in the correct repos?
https://github.com/libretro/gambatte-libretro https://github.com/libretro/nxengine-libretro https://github.com/libretro/tgbdual-libretro https://github.com/libretro/tyrquake
osx 10.5 ppc. Identical issues with gambatte, tgbdual, tyrquake and nxengine.
Trying to compile with Apple gcc 4.2 gives loads of "Flag option -o has already been seen!" and the compilation fails. So lets switch to gcc 4.7 from macports.
Now the build gets a bit further, but still fails, since gcc 4.7 from macports does not support the arch flag. But looking at the build, it's not only that arch is being used, it's the wrong arch as well.
c++ -c -olibgambatte/src/bootloader.o libgambatte/src/bootloader.cpp -O2 -DNDEBUG -fno-exceptions -fno-rtti -std=c++98 -DHAVE_STDINT_H -fPIC -D__LIBRETRO__ -DHAVE_STDINT_H -DHAVE_INTTYPES_H -DINLINE=inline -DVIDEO_RGB565 -DHAVE_NETWORK -arch i386 -arch x86_64 -Ilibgambatte/src -Ilibgambatte/src/../include -Ilibgambatte/src/../../common -Ilibgambatte/src/../../common/resample -Ilibgambatte/src/../libretro -Ilibgambatte/src/../libretro-common/include
From Makefile.libretro:
For a quick test I just commented out the line. A proper check should detect ppc and omit the arch flag. After these tweaks gambatte and tyrquake builds!
Nxengine comes further but fails at:
tgb dual also comes further but fails
What's needed here is a fix that detects ppc and if so, omits the arch flag so the macports compiler can be used.