fix remove static flag
Some checks failed
linux-x86-gcc / linux-gcc (Debug) (push) Waiting to run
linux-x86-gcc / linux-gcc (Release) (push) Waiting to run
android / build (push) Successful in 6m31s
linux-aarch64-cpu-gcc / linux-gcc-aarch64 (Debug) (push) Failing after 8m50s
linux-arm-gcc / linux-gcc-arm (Debug) (push) Failing after 9m51s
linux-aarch64-cpu-gcc / linux-gcc-aarch64 (Release) (push) Failing after 12m17s
linux-arm-gcc / linux-gcc-arm (Release) (push) Failing after 9m26s
linux-mips-gcc / linux-gcc-mipsel (Debug) (push) Failing after 8m14s
linux-arm-gcc / linux-gcc-armhf (Debug) (push) Failing after 11m55s
linux-arm-gcc / linux-gcc-armhf (Release) (push) Failing after 14m57s
linux-mips64-gcc / linux-gcc-mips64el (Debug) (push) Failing after 8m47s
linux-mips-gcc / linux-gcc-mipsel (Release) (push) Failing after 16m13s
linux-mips64-gcc / linux-gcc-mips64el (Release) (push) Failing after 14m16s
linux-x64-gcc / linux-gcc (Release) (push) Has been cancelled
linux-x64-gcc / linux-gcc (Debug) (push) Has been cancelled
linux-riscv64-gcc / linux-gcc-riscv64 (Release) (push) Has been cancelled
linux-riscv64-gcc / linux-gcc-riscv64 (Debug) (push) Has been cancelled

This commit is contained in:
tqcq 2024-06-14 16:19:06 +08:00
parent ea484f3137
commit 86cf6115f5

View File

@ -40,8 +40,8 @@ elseif(CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang")
set(WHOLE_ARCHIVE_PREFIX "-Wl,-force_load,") set(WHOLE_ARCHIVE_PREFIX "-Wl,-force_load,")
# set(NO_WHOLE_ARCHIVE_PREFIX "") # set(NO_WHOLE_ARCHIVE_PREFIX "")
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "GNU") elseif(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -static-libgcc -static-libstdc++") # set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -static-libgcc -static-libstdc++")
set(CMAKE_C_FLAGS "${CMAKE_CXX_FLAGS} -static-libgcc -static-libstdc++") # set(CMAKE_C_FLAGS "${CMAKE_CXX_FLAGS} -static-libgcc -static-libstdc++")
set(WHOLE_ARCHIVE_PREFIX "-Wl,--whole-archive") set(WHOLE_ARCHIVE_PREFIX "-Wl,--whole-archive")
set(WHOLE_ARCHIVE_SUFFIX "-Wl,--no-whole-archive") set(WHOLE_ARCHIVE_SUFFIX "-Wl,--no-whole-archive")