summaryrefslogtreecommitdiff
path: root/core/src/luajit/xmake.lua
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/luajit/xmake.lua')
-rw-r--r--core/src/luajit/xmake.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/src/luajit/xmake.lua b/core/src/luajit/xmake.lua
index 2479be3ce..aa5c1d7a2 100644
--- a/core/src/luajit/xmake.lua
+++ b/core/src/luajit/xmake.lua
@@ -62,8 +62,8 @@ target("luajit")
-- fix call math.sin/log crash for fedora/i386/lj_vm.S with `LDFLAGS = -specs=/usr/lib/rpm/redhat/redhat-hardened-ld` in xmake.spec/%set_build_flags
if is_plat("linux") and is_arch("i386") then
- add_asflags("-fPIC")
- add_ldflags("-fPIC")
+ add_asflags("-fPIE")
+ add_ldflags("-fPIE")
end
-- enable lua5.2 compat, @see http://luajit.org/extensions.html