Skip to content

Commit fb24e52

Browse files
committed
Update dynamic lib linkage on Linux to be more portable
1 parent 6a8ebce commit fb24e52

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

compile/common/bee.lua

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ lm:source_set "source_bee" {
6969
},
7070
linux = {
7171
sources = {
72-
"!bee/crash/linux/**/",
7372
need {
7473
"linux",
7574
"posix",
@@ -136,9 +135,11 @@ lm:source_set "source_bee" {
136135
}
137136
},
138137
linux = {
139-
ldflags = "-pthread",
138+
ldflags = "-pthread -l:libbfd.a -l:libiberty.a -l:libsframe.a -l:libzstd.so -l:libz.so",
140139
links = {
141140
"stdc++fs",
141+
"unwind",
142+
"gcc_s"
142143
}
143144
},
144145
macos = {

0 commit comments

Comments
 (0)