Skip to content

Commit 1f8f488

Browse files
Improve libstdc++ link
1 parent 28daeef commit 1f8f488

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

runtime/src/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ add_library(${TARGET_NAME} SHARED altv.cpp CSharpScriptRuntime.cpp CSharpResourc
88

99
if(UNIX AND NOT APPLE)
1010
#target_compile_options(${TARGET_NAME} PRIVATE -std=c++17 -static -nostdinc++ -I/home/parallels/Desktop/clang_7.0.1/include/c++/v1 -nodefaultlibs -lc++ -lc++abi -lm -lc -lgcc_s -lgcc)
11-
target_compile_options(${TARGET_NAME} PRIVATE -std=c++17 -static)
11+
target_compile_options(${TARGET_NAME} PRIVATE -std=c++17 -lstdc++ -static-libstdc++)
1212
else()
1313
target_compile_options(${TARGET_NAME} PRIVATE)# -I/home/parallels/Desktop/clang_7.0.1/include/c++/v1 -stdlib=libc++ -I$ENV{PROGRAMFILES}/LLVM/lib/clang/7.0.1/include -nodefaultlibs
1414
endif()

0 commit comments

Comments
 (0)