Skip to content

Commit 1a77516

Browse files
committed
Force to build against luajit
Build will fail if lua 5.2 is installed. Use LUAJIT_LIB and LUAJIT_INC to force nginx build against luajit. Signed-off-by: Lance Chen <[email protected]>
1 parent 8939262 commit 1a77516

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

PKGBUILD

+4-2
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
_pkgname=nginx
99
pkgname="${_pkgname}-lua-postgres"
1010
pkgver=1.4.7
11-
pkgrel=1
11+
pkgrel=2
1212
pkgdesc='Lightweight HTTP server and IMAP/POP3 proxy server, with lua and postgresql modules support'
1313
arch=('i686' 'x86_64')
1414
url='http://nginx.org'
1515
license=('custom')
16-
depends=('pcre' 'zlib' 'openssl' 'luajit' 'postgresql-libs')
16+
depends=('pcre' 'zlib' 'openssl' 'luajit>=2.0' 'postgresql-libs')
1717
makedepends=('git')
1818
conflicts=('nginx')
1919
provides=('nginx')
@@ -40,6 +40,8 @@ md5sums=('aee151d298dcbfeb88b3f7dd3e7a4d17'
4040
'3441ce77cdd1aab6f0ab7e212698a8a7')
4141

4242
build() {
43+
export LUAJIT_LIB=/usr/lib
44+
export LUAJIT_INC=/usr/include/luajit-2.0
4345
cd "$_pkgname-$pkgver"
4446
./configure \
4547
--prefix=/etc/nginx \

0 commit comments

Comments
 (0)