File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -27,8 +27,7 @@ SET(CMAKE_SYSTEM_VERSION 1)
2727SET (CMAKE_SYSTEM_PROCESSOR mips)
2828SET (CMAKE_C_COMPILER mipsel-ps2-irx-gcc)
2929SET (CMAKE_CXX_COMPILER mipsel-ps2-irx-g++)
30- SET (CMAKE_C_COMPILER_WORKS 1) #Hack by f0bes
31- SET (CMAKE_CXX_COMPILER_WORKS 1) #Hack by f0bes
30+ SET (CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY)
3231
3332
3433#
@@ -41,8 +40,8 @@ SET(IOP_ASFLAGS_TARGET "-mcpu=r3000")
4140INCLUDE_DIRECTORIES ($ENV{PS2SDK} /iop/include $ENV{PS2SDK} /common/include $ENV{PS2SDK} /ports_iop/include )
4241ADD_DEFINITIONS (-D_IOP -DPS2 -D__PS2__)
4342
44- SET (IOP_CFLAGS "${IOP_CFLAGS_TARGET} -O2 -G0 -fno-builtin" CACHE STRING "IOP C compiler flags" FORCE)
45- SET (IOP_LDFLAGS "${IOP_LDFLAGS_TARGET} -T $ENV{PS2SDK} /iop/startup/linkfile - L$ENV{PS2SDK} /iop/lib -L$ENV{PS2SDK} /ports_iop/lib -Wl,-zmax-page-size=128 - nostdlib -Os -Wall " CACHE STRING "IOP linker flags" FORCE)
43+ SET (IOP_CFLAGS "${IOP_CFLAGS_TARGET} -Os -G0 -fno-builtin -Wall -gdwarf-2 -gz -msoft-float -mno-explicit-relocs -fno-toplevel-reorder " CACHE STRING "IOP C compiler flags" FORCE)
44+ SET (IOP_LDFLAGS "${IOP_LDFLAGS_TARGET} -L$ENV{PS2SDK} /iop/lib -L$ENV{PS2SDK} /ports_iop/lib -nostdlib -s " CACHE STRING "IOP linker flags" FORCE)
4645SET (IOP_ASFLAGS "${IOP_ASFLAGS_TARGET} -EL -G0" CACHE STRING "IOP assembler flags" FORCE)
4746
4847SET (CMAKE_C_FLAGS_INIT ${IOP_CFLAGS} )
You can’t perform that action at this time.
0 commit comments