Skip to content

Commit

Permalink
fixes linux
Browse files Browse the repository at this point in the history
  • Loading branch information
actboy168 committed Jun 29, 2024
1 parent 272c01a commit 18bea30
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions compile/luajit/make.lua
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,11 @@ lm:source_set("lj_str_hash.c") {
LUA_MULTILIB,
LUAJIT_ENABLE_LUA52COMPAT,
LUAJIT_NUMMODE,
"_XOPEN_SOURCE=600"
},
linux = {
defines = {
"_GNU_SOURCE",
}
},
flags = lj_str_hash_flags
}
Expand Down Expand Up @@ -151,6 +155,9 @@ lm:executable("luajit/lua") {
linux = {
links = "dl",
ldflags = "-Wl,-E",
defines = {
"_GNU_SOURCE",
}
},
android = {
links = "dl"
Expand All @@ -161,7 +168,7 @@ lm:executable("luajit/lua") {
_LARGEFILE_SOURCE,
LUA_MULTILIB,
LUAJIT_ENABLE_LUA52COMPAT,
LUAJIT_NUMMODE
LUAJIT_NUMMODE,
},
flags = {
"-fno-stack-protector",
Expand Down

0 comments on commit 18bea30

Please sign in to comment.