File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ if(MRBIND_BUILD_PARSER)
7272 target_include_directories (mrbind PRIVATE ${LLVM_INCLUDE_DIR} ${CLANG_INCLUDE_DIR} )
7373
7474 if (MRBIND_STATIC_BUILD)
75- target_link_libraries (mrbind PRIVATE -static )
75+ target_link_libraries (mrbind PRIVATE -static-libstdc++ -static-libgcc )
7676 if (NOT TARGET clangTooling)
7777 message (FATAL_ERROR "clangTooling is required for static builds" )
7878 endif ()
@@ -138,7 +138,7 @@ if(MRBIND_BUILD_GENERATOR_C)
138138 mrbind_c_interop
139139 )
140140 if (MRBIND_STATIC_BUILD)
141- target_link_libraries (mrbind_gen_c PRIVATE -static )
141+ target_link_libraries (mrbind_gen_c PRIVATE -static-libstdc++ -static-libgcc )
142142 endif ()
143143endif ()
144144
@@ -156,6 +156,6 @@ if(MRBIND_BUILD_GENERATOR_CSHARP)
156156 mrbind_c_interop
157157 )
158158 if (MRBIND_STATIC_BUILD)
159- target_link_libraries (mrbind_gen_csharp PRIVATE -static )
159+ target_link_libraries (mrbind_gen_csharp PRIVATE -static-libstdc++ -static-libgcc )
160160 endif ()
161161endif ()
You can’t perform that action at this time.
0 commit comments