diff options
| author | ruki <[email protected]> | 2020-10-04 21:49:26 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-10-04 21:49:44 +0800 |
| commit | 8e6f673fe1eb57a5f5535d9bac663868a3922caf (patch) | |
| tree | 228bd1bec61f94e7da6aad74f4b5eaeb47a5e270 /core/src | |
| parent | 86717a54f05f539460be3ad3d4d49fb121758e84 (diff) | |
switch -fPIE to -fPIC
Diffstat (limited to 'core/src')
| -rw-r--r-- | core/src/luajit/makefile | 4 | ||||
| -rw-r--r-- | core/src/luajit/xmake.lua | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/core/src/luajit/makefile b/core/src/luajit/makefile index 0bfbaa0ff..e0bc287ea 100644 --- a/core/src/luajit/makefile +++ b/core/src/luajit/makefile @@ -128,8 +128,8 @@ endif # 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 ifeq ($(BUILD_ARCH),i386) -luajit_ASFLAGS += -fPIC -luajit_CXFLAGS += -fPIC +luajit_ASFLAGS += -fPIE +luajit_CXFLAGS += -fPIE endif # suffix 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 |
