1
mirror of https://github.com/monero-project/monero-gui synced 2024-12-01 08:11:54 +01:00

cmake: always link libgcc, libstdc++ statically

This commit is contained in:
xiphon 2020-05-15 02:28:47 +00:00
parent c20a0ef928
commit 15038850c2

View File

@ -391,12 +391,11 @@ if (WIN32)
add_linker_flag_if_supported(-Wl,--high-entropy-va LD_SECURITY_FLAGS)
endif()
add_linker_flag_if_supported(-static-libgcc STATIC_FLAGS)
add_linker_flag_if_supported(-static-libstdc++ STATIC_FLAGS)
if(STATIC)
if(MINGW)
add_linker_flag_if_supported(-static STATIC_FLAGS)
else()
add_linker_flag_if_supported(-static-libgcc STATIC_FLAGS)
add_linker_flag_if_supported(-static-libstdc++ STATIC_FLAGS)
endif()
endif()