From 6e26e066e1995514cb6c76d657174eb293e42169 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Sun, 16 Sep 2012 23:02:19 +0200 Subject: main/lua-dap: fix segfault on x86_64 ref #1294 --- main/lua-ldap/APKBUILD | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/main/lua-ldap/APKBUILD b/main/lua-ldap/APKBUILD index f33168a5f9..cf4e963b97 100644 --- a/main/lua-ldap/APKBUILD +++ b/main/lua-ldap/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Natanael Copa 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" -- cgit v1.2.3