Skip to content

Commit c497cc2

Browse files
committed
fix zig build
1 parent ceafd40 commit c497cc2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

make/detect_platform.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ elseif platform.os == 'linux' then
3333
elseif lm.platform == "linux-x64" then
3434
-- Target glibc 2.17 for x86_64
3535
lm.flags = { '-target', 'x86_64-linux-gnu.2.17' }
36-
lm.ldflags = { '-target', 'x86_64-linux-gnu.2.17' }
36+
lm.ldflags = { '-target', 'x86_64-linux-gnu.2.17', '-lc++' }
3737
elseif lm.platform == "linux-arm64" then
3838
-- Target glibc 2.17 for aarch64
3939
lm.flags = { '-target', 'aarch64-linux-gnu.2.17' }
40-
lm.ldflags = { '-target', 'aarch64-linux-gnu.2.17' }
40+
lm.ldflags = { '-target', 'aarch64-linux-gnu.2.17', '-lc++' }
4141
else
4242
error "unknown platform"
4343
end

0 commit comments

Comments
 (0)