mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-lua/luaposix: respect LDFLAGS (fix #739050)
Respect LDFLAGS. Closes: https://bugs.gentoo.org/739050 Package-Manager: Portage-2.3.103, Repoman-2.3.23 Signed-off-by: Azamat H. Hackimov <azamat.hackimov@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/17308 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
This commit is contained in:
committed by
Joonas Niilola
parent
b6072ec4da
commit
0f6072b327
@@ -17,12 +17,20 @@ RDEPEND="dev-lang/lua:0=
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="virtual/pkgconfig"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
# Temporary fix for respect LDFLAGS (#739050)
|
||||
# Fixed in luke 0.2.1
|
||||
sed -i -e "s:c_module,libdirs:c_module,'\$LDFLAGS',libdirs:g" \
|
||||
build-aux/luke || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
./build-aux/luke package="${PN}" version="${PV}" \
|
||||
PREFIX="${ED}/usr" \
|
||||
INST_LIBDIR="${ED}/$($(tc-getPKG_CONFIG) --variable INSTALL_CMOD lua)" \
|
||||
INST_LUADIR="${ED}/$($(tc-getPKG_CONFIG) --variable INSTALL_LMOD lua)" \
|
||||
CFLAGS="${CFLAGS}" CC="$(tc-getCC)" || die
|
||||
CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" CC="$(tc-getCC)" || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
|
||||
Reference in New Issue
Block a user