summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzamat H. Hackimov <azamat.hackimov@gmail.com>2020-08-29 09:33:26 +0300
committerJoonas Niilola <juippis@gentoo.org>2020-09-29 09:17:12 +0300
commit0f6072b327ee7d9fa9944f5b6dbd508c4976a24a (patch)
tree649c0ec5b17b2a987153937c9158443213423f8d /dev-lua/luaposix
parentdev-util/lcov: add optfeature, emake -j1 (diff)
downloadgentoo-0f6072b327ee7d9fa9944f5b6dbd508c4976a24a.tar.gz
gentoo-0f6072b327ee7d9fa9944f5b6dbd508c4976a24a.tar.bz2
gentoo-0f6072b327ee7d9fa9944f5b6dbd508c4976a24a.zip
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>
Diffstat (limited to 'dev-lua/luaposix')
-rw-r--r--dev-lua/luaposix/luaposix-35.0.ebuild10
1 files changed, 9 insertions, 1 deletions
diff --git a/dev-lua/luaposix/luaposix-35.0.ebuild b/dev-lua/luaposix/luaposix-35.0.ebuild
index a49f69845d1a..06ef159c1e90 100644
--- a/dev-lua/luaposix/luaposix-35.0.ebuild
+++ b/dev-lua/luaposix/luaposix-35.0.ebuild
@@ -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() {