diff options
| author | ruki <[email protected]> | 2020-10-03 00:37:25 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-10-03 00:37:25 +0800 |
| commit | c1f1db8e3358255e95afb22b5f16da683ec696e2 (patch) | |
| tree | e7a3a35efba7727ceef81178d54408f124911898 /core/src/luajit/makefile | |
| parent | 378936872327105816196e2827eb5ad784faead6 (diff) | |
fix luajit crash for fedora/i386
Diffstat (limited to 'core/src/luajit/makefile')
| -rw-r--r-- | core/src/luajit/makefile | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/core/src/luajit/makefile b/core/src/luajit/makefile index 4af63a873..0bfbaa0ff 100644 --- a/core/src/luajit/makefile +++ b/core/src/luajit/makefile @@ -125,7 +125,13 @@ luajit_CXFLAGS += -Wno-error=unused-function ifeq ($(BUILD_ARCH),arm) luajit_CXFLAGS += -DLUAJIT_USE_SYSMALLOC 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 +endif + # suffix include $(PRO_DIR)/suffix.mak |
