Skip to content

Commit 5a190bf

Browse files
committed
Explicitly link to libstdc++ on linux.
In some environments using secondary installed compiler version does not link to libstdc++ automatically, which results in `DllNotFoundException`.
1 parent e5bc151 commit 5a190bf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

build/Helpers.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,9 @@ function SetupNativeProject()
8484
buildoptions { msvc_buildflags }
8585
defines { msvc_cpp_defines }
8686

87-
filter { "action:gmake" }
87+
filter { "system:linux" }
8888
buildoptions { gcc_buildflags }
89+
links { "stdc++" }
8990

9091
filter { "system:macosx", "language:C++" }
9192
buildoptions { gcc_buildflags, "-stdlib=libc++" }

0 commit comments

Comments
 (0)