Statically link libstdc++ and libgcc when memprof is enabled.

This commit is contained in:
levlam 2023-03-12 22:37:52 +03:00
parent 8847638d28
commit 004c442fdf

View File

@ -149,6 +149,9 @@ if (CLANG OR GCC)
elseif (APPLE)
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-no_pie")
endif()
include(AddCXXCompilerFlag)
add_cxx_compiler_flag("-static-libstdc++")
add_cxx_compiler_flag("-static-libgcc")
endif()
endif()