try to init C flags for WinCE 2

This commit is contained in:
Viktor Szakats 2025-02-25 15:30:50 +01:00
parent 000cf897cf
commit 266e26a3d2
No known key found for this signature in database
GPG Key ID: B5ABD165E2AEF201

View File

@ -110,10 +110,10 @@ elseif(WIN32 AND WINCE AND CMAKE_COMPILER_IS_GNUCC) # mingw32ce build
set(CMAKE_C_COMPILE_OPTIONS_PIC "") # CMake sets it to '-fPIC', confusing the toolchain and breaking builds. Zap it.
string(APPEND CMAKE_C_FLAGS_DEBUG_INIT " -g")
string(APPEND CMAKE_C_FLAGS_MINSIZEREL_INIT " -Os -DNDEBUG")
string(APPEND CMAKE_C_FLAGS_RELEASE_INIT " -O3 -DNDEBUG")
string(APPEND CMAKE_C_FLAGS_RELWITHDEBINFO_INIT " -O2 -g -DNDEBUG")
string(APPEND CMAKE_C_FLAGS_DEBUG " -g")
string(APPEND CMAKE_C_FLAGS_MINSIZEREL " -Os -DNDEBUG")
string(APPEND CMAKE_C_FLAGS_RELEASE " -O3 -DNDEBUG")
string(APPEND CMAKE_C_FLAGS_RELWITHDEBINFO " -O2 -g -DNDEBUG")
set(CMAKE_STATIC_LIBRARY_PREFIX "lib")
set(CMAKE_STATIC_LIBRARY_SUFFIX ".a")