Skip to content

Commit

Permalink
dev-lua/luaposix: respect LDFLAGS (fix #739050)
Browse files Browse the repository at this point in the history
Respect LDFLAGS.

Closes: https://bugs.gentoo.org/739050
Package-Manager: Portage-2.3.103, Repoman-2.3.23
Signed-off-by: Azamat H. Hackimov <[email protected]>
Closes: gentoo#17308
Signed-off-by: Joonas Niilola <[email protected]>
  • Loading branch information
winterheart authored and juippis committed Sep 29, 2020
1 parent b6072ec commit 0f6072b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion dev-lua/luaposix/luaposix-35.0.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 0f6072b

Please sign in to comment.