build the ps2 platform entirely with freesce: --freesce premake option

premake5 gmake --freesce retargets the one ps2 platform at freesce
(its own ee-gcc 2.9 + newlib; FREESCE/FREESCE_GCC roots, defaulting
to /usr/local/freesce) -- a premake-time choice since the 2.9 and 3.2
C++ ABIs don't link. The tools/freesce wrappers strip premake's
gcc-3-style dep flags. demoreel_cd_freesce.elf now links with zero
SCE inputs: freesce crt chain, newlib libc/libm, and ctorgen to
register the PluginList ctors gcc 2.9 leaves orphaned.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
aap
2026-08-26 17:53:21 +02:00
parent ecb52a56f7
commit 18532c2e13
6 changed files with 212 additions and 25 deletions
+3
View File
@@ -0,0 +1,3 @@
#!/bin/sh
# premake's gccprefix applies to ar too; just forward
exec "${FREESCE_GCC:-/usr/local/freesce/ee/gcc}/bin/ee-ar" "$@"