dev-lua/lua-cyrussasl: fix library linkage

This commit is contained in:
nemunaire 2019-05-02 09:26:16 +02:00
commit 864e5a662e
2 changed files with 5 additions and 6 deletions

View file

@ -1,4 +1,4 @@
# Copyright 1999-2018 Gentoo Foundation
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
@ -23,6 +23,9 @@ src_prepare() {
sed -i '/CFLAGS=/d;/LDFLAGS=/d;/LUAPATH=/d;/CPATH=/d' Makefile \
|| die "Unable to remove bad variables overwrite."
sed -i '/$(LDFLAGS)/s/$/ $(LIBS)/' Makefile \
|| die "Unable do required subtitution."
append-cflags -fpic
append-ldflags -O -shared -fpic
append-libs -lsasl2 -llua
@ -30,10 +33,6 @@ src_prepare() {
default
}
src_compile() {
default
}
src_install() {
export CPATH=${D}/usr/lib/lua/5.1
mkdir -p ${CPATH}