Try statically linking libgcc and libstdc++ on Linux too

This commit is contained in:
def 2018-05-22 19:42:48 +02:00
parent 5726d5647c
commit 9c29d83d32

View file

@ -1485,9 +1485,9 @@ foreach(target ${TARGETS_LINK})
target_link_libraries(${target} -stdlib=libc++)
target_link_libraries(${target} -mmacosx-version-min=10.7)
endif()
if(MINGW)
# Statically link the standard libraries with on MinGW so we don't have to
# ship them as DLLs.
if(MINGW OR TARGET_OS STREQUAL "linux")
# Statically link the standard libraries with on MinGW/Linux so we don't
# have to ship them as DLLs.
target_link_libraries(${target} -static-libgcc)
target_link_libraries(${target} -static-libstdc++)
endif()