link libstdc++ and libgcc statically as well

This commit is contained in:
Wolf Vollprecht 2020-07-01 15:18:25 +02:00
parent 746e20c4ab
commit 3127f0f981
1 changed files with 2 additions and 0 deletions

View File

@ -82,6 +82,8 @@ if (LINK_STATIC)
elseif (UNIX)
set(MAMBA_FORCE_DYNAMIC_LIBS rt dl c resolv)
endif()
add_link_options(-static-libstdc++ -static-libgcc)
endif()
if (LINK_STATIC)