diff options
author | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2017-04-17 18:36:15 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2017-04-18 08:57:29 +0000 |
commit | a4209b342425f7f0281075ac67b8414ab7083e8c (patch) | |
tree | c75fa2ca0bc8f72636133df8d6531bd1d957ecc6 /main/luajit | |
parent | 1c1ddde2dcba5c91a8ae97899e006e82cbf34b74 (diff) | |
download | aports-a4209b342425f7f0281075ac67b8414ab7083e8c.tar.bz2 aports-a4209b342425f7f0281075ac67b8414ab7083e8c.tar.xz |
main/luajit: fix a segfault in ppc64le
Add -no-pie linker flag to fix a segfault in ppc64le. The segfault was happening
because -pie was adding a prologue and corrupting the toc pointer.
This is a temporary workaround to fix this issue for now but I will investigate
latter why it is happening.
Diffstat (limited to 'main/luajit')
-rw-r--r-- | main/luajit/APKBUILD | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/main/luajit/APKBUILD b/main/luajit/APKBUILD index 9e23c49fcf..16fc60e5b1 100644 --- a/main/luajit/APKBUILD +++ b/main/luajit/APKBUILD @@ -18,6 +18,9 @@ builddir=$srcdir/LuaJIT-$_realver build() { cd "$builddir" + if [ "$CARCH" = "ppc64le" ]; then + local LDFLAGS="-no-pie" + fi make amalg PREFIX=/usr || return 1 } |