summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Masłowski <mtjm@mtjm.eu>2012-12-12 19:28:36 +0100
committerMichał Masłowski <mtjm@mtjm.eu>2012-12-12 19:28:36 +0100
commit7a54f5ebad2b78abe9e2c89cf0e4c2ebfeeea0ec (patch)
tree69d618cd74425999cfc00649b908d39d1d4bc212
parent4607424231af4770216ef1f336ed63ea1e660718 (diff)
Fix lua51 build.
-rw-r--r--extra/lua51/PKGBUILD2
1 files changed, 1 insertions, 1 deletions
diff --git a/extra/lua51/PKGBUILD b/extra/lua51/PKGBUILD
index 691956910..11589a7f1 100644
--- a/extra/lua51/PKGBUILD
+++ b/extra/lua51/PKGBUILD
@@ -23,7 +23,7 @@ build() {
cd lua-$pkgver
patch -p1 -i "$srcdir/lua-arch.patch"
patch -p1 -i "$srcdir/lua-5.1-cflags.diff"
- [[ $CARCH == x86_64 ]] && export CFLAGS="$CFLAGS -fPIC"
+ [[ $CARCH != i686 ]] && export CFLAGS="$CFLAGS -fPIC"
sed -e 's:llua:llua5.1:' -e 's:/include:/include/lua5.1:' -i etc/lua.pc
sed -r -e '/^LUA_(SO|A|T)=/ s/lua/lua5.1/' -e '/^LUAC_T=/ s/luac/luac5.1/' -i src/Makefile
make MYCFLAGS="$CFLAGS" MYLDFLAGS="$LDFLAGS" linux