summaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-09-16 23:02:19 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2012-09-16 23:02:19 +0200
commit6e26e066e1995514cb6c76d657174eb293e42169 (patch)
tree1baef8ead0fd67d8363e28d132eb09acb7afa57e /main
parentdbbe5086d238395159db84d179e282b233dbb8e2 (diff)
downloadaports-6e26e066e1995514cb6c76d657174eb293e42169.tar.bz2
aports-6e26e066e1995514cb6c76d657174eb293e42169.tar.xz
main/lua-dap: fix segfault on x86_64
ref #1294
Diffstat (limited to 'main')
-rw-r--r--main/lua-ldap/APKBUILD8
1 files changed, 5 insertions, 3 deletions
diff --git a/main/lua-ldap/APKBUILD b/main/lua-ldap/APKBUILD
index f33168a5f..cf4e963b9 100644
--- a/main/lua-ldap/APKBUILD
+++ b/main/lua-ldap/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=lua-ldap
pkgver=1.1.0
-pkgrel=1
+pkgrel=2
pkgdesc="Lua binding to ldap"
url="http://www.keplerproject.org/lualdap/"
arch="all"
@@ -28,12 +28,14 @@ prepare() {
build() {
cd "$_builddir"
- make OPENLDAP_LIB="-lldap -llber" || return 1
+ make OPENLDAP_LIB="-lldap -llber" \
+ WARN="-DLDAP_DEPRECATED -fPIC -ansi $CFLAGS" || return 1
}
package() {
cd "$_builddir"
- make install LUA_LIBDIR="$pkgdir"/usr/lib/lua/5.1
+ local install_cmod=$(pkg-config --variable=INSTALL_CMOD lua)
+ make install LUA_LIBDIR="$pkgdir"/$install_cmod
}
md5sums="5e104520c3f1333f38817a9fa1e76681 lualdap-1.1.0.tar.gz"