summaryrefslogtreecommitdiff
path: root/extra/lua
diff options
context:
space:
mode:
authorNicolas Reynolds <fauno@kiwwwi.com.ar>2011-11-21 15:48:32 -0300
committerNicolas Reynolds <fauno@kiwwwi.com.ar>2011-11-21 15:48:32 -0300
commit6ec91bf28912c0fef60d7eecc7cb03b6e2879be3 (patch)
tree7ba5dfa3197676ca6b352d550155ef844828d809 /extra/lua
parent9d6dd0a34cb8bd599c4d06c54dbd247ede60267f (diff)
lua: add -fPIC
Diffstat (limited to 'extra/lua')
-rw-r--r--extra/lua/PKGBUILD2
1 files changed, 2 insertions, 0 deletions
diff --git a/extra/lua/PKGBUILD b/extra/lua/PKGBUILD
index bba4715fa..65828bc12 100644
--- a/extra/lua/PKGBUILD
+++ b/extra/lua/PKGBUILD
@@ -26,6 +26,8 @@ build() {
patch -p1 -i "${srcdir}/lua-arch.patch"
[ "$CARCH" == "x86_64" ] && patch -p1 -i "${srcdir}/lua-5.1-cflags.diff"
[ "$CARCH" == "x86_64" ] && export CFLAGS="$CFLAGS -fPIC"
+ [ "$CARCH" == "mips64el" ] && patch -p1 -i "${srcdir}/lua-5.1-cflags.diff"
+ [ "$CARCH" == "mips64el" ] && export CFLAGS="$CFLAGS -fPIC"
make INSTALL_DATA="cp -d" TO_LIB="liblua.a liblua.so liblua.so.5.1" LUA_SO=liblua.so \
INSTALL_TOP="${pkgdir}/usr" INSTALL_MAN="${pkgdir}/usr/share/man/man1" \
linux