1 |
commit: 0f6072b327ee7d9fa9944f5b6dbd508c4976a24a |
2 |
Author: Azamat H. Hackimov <azamat.hackimov <AT> gmail <DOT> com> |
3 |
AuthorDate: Sat Aug 29 06:33:26 2020 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Sep 29 06:17:12 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0f6072b3 |
7 |
|
8 |
dev-lua/luaposix: respect LDFLAGS (fix #739050) |
9 |
|
10 |
Respect LDFLAGS. |
11 |
|
12 |
Closes: https://bugs.gentoo.org/739050 |
13 |
Package-Manager: Portage-2.3.103, Repoman-2.3.23 |
14 |
Signed-off-by: Azamat H. Hackimov <azamat.hackimov <AT> gmail.com> |
15 |
Closes: https://github.com/gentoo/gentoo/pull/17308 |
16 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
17 |
|
18 |
dev-lua/luaposix/luaposix-35.0.ebuild | 10 +++++++++- |
19 |
1 file changed, 9 insertions(+), 1 deletion(-) |
20 |
|
21 |
diff --git a/dev-lua/luaposix/luaposix-35.0.ebuild b/dev-lua/luaposix/luaposix-35.0.ebuild |
22 |
index a49f69845d1..06ef159c1e9 100644 |
23 |
--- a/dev-lua/luaposix/luaposix-35.0.ebuild |
24 |
+++ b/dev-lua/luaposix/luaposix-35.0.ebuild |
25 |
@@ -17,12 +17,20 @@ RDEPEND="dev-lang/lua:0= |
26 |
DEPEND="${RDEPEND}" |
27 |
BDEPEND="virtual/pkgconfig" |
28 |
|
29 |
+src_prepare() { |
30 |
+ default |
31 |
+ # Temporary fix for respect LDFLAGS (#739050) |
32 |
+ # Fixed in luke 0.2.1 |
33 |
+ sed -i -e "s:c_module,libdirs:c_module,'\$LDFLAGS',libdirs:g" \ |
34 |
+ build-aux/luke || die |
35 |
+} |
36 |
+ |
37 |
src_compile() { |
38 |
./build-aux/luke package="${PN}" version="${PV}" \ |
39 |
PREFIX="${ED}/usr" \ |
40 |
INST_LIBDIR="${ED}/$($(tc-getPKG_CONFIG) --variable INSTALL_CMOD lua)" \ |
41 |
INST_LUADIR="${ED}/$($(tc-getPKG_CONFIG) --variable INSTALL_LMOD lua)" \ |
42 |
- CFLAGS="${CFLAGS}" CC="$(tc-getCC)" || die |
43 |
+ CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" CC="$(tc-getCC)" || die |
44 |
} |
45 |
|
46 |
src_install() { |