summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatti Bickel <mabi@gentoo.org>2012-03-05 22:01:15 +0000
committerMatti Bickel <mabi@gentoo.org>2012-03-05 22:01:15 +0000
commitfd83ac2e35a7abfd9eb546e9f5e5b60424c87d6d (patch)
tree708fc765720a2d89be56381ba987323da08cffcc
parentMarking pygobject-2.28.6-r51 ppc for bug 393007 (diff)
downloadgentoo-2-fd83ac2e35a7abfd9eb546e9f5e5b60424c87d6d.tar.gz
gentoo-2-fd83ac2e35a7abfd9eb546e9f5e5b60424c87d6d.tar.bz2
gentoo-2-fd83ac2e35a7abfd9eb546e9f5e5b60424c87d6d.zip
make lua respect LDFLAGS (bug #406997)
(Portage version: 2.2.0_alpha90/cvs/Linux x86_64)
-rw-r--r--dev-lang/lua/ChangeLog5
-rw-r--r--dev-lang/lua/lua-5.2.0.ebuild9
2 files changed, 8 insertions, 6 deletions
diff --git a/dev-lang/lua/ChangeLog b/dev-lang/lua/ChangeLog
index 57617233b129..0f59377072fa 100644
--- a/dev-lang/lua/ChangeLog
+++ b/dev-lang/lua/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for dev-lang/lua
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/lua/ChangeLog,v 1.155 2012/03/05 12:42:58 mabi Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/lua/ChangeLog,v 1.156 2012/03/05 22:01:15 mabi Exp $
+
+ 05 Mar 2012; Matti Bickel <mabi@gentoo.org> lua-5.2.0.ebuild:
+ make lua respect LDFLAGS (bug #406997)
05 Mar 2012; Matti Bickel <mabi@gentoo.org>
-files/5.1.3/01_all_LUAI_MAXCSTACK.upstream.patch,
diff --git a/dev-lang/lua/lua-5.2.0.ebuild b/dev-lang/lua/lua-5.2.0.ebuild
index 52b3b621eeda..a178e4fe53e5 100644
--- a/dev-lang/lua/lua-5.2.0.ebuild
+++ b/dev-lang/lua/lua-5.2.0.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/lua/lua-5.2.0.ebuild,v 1.1 2012/03/04 22:58:29 mabi Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/lua/lua-5.2.0.ebuild,v 1.2 2012/03/05 22:01:15 mabi Exp $
EAPI=4
@@ -57,16 +57,14 @@ src_prepare() {
src_compile() {
tc-export CC
- myflags=
+
# what to link to liblua
liblibs="-lm"
liblibs="${liblibs} $(dlopen_lib)"
# what to link to the executables
mylibs=
- if use readline; then
- mylibs="-lreadline"
- fi
+ use readline && mylibs="-lreadline"
cd src
@@ -74,6 +72,7 @@ src_compile() {
use deprecated && legacy="-DLUA_COMPAT_ALL"
emake CC="${CC}" CFLAGS="-DLUA_USE_LINUX ${legacy} ${CFLAGS}" \
+ SYSLDFLAGS="${LDFLAGS}"
RPATH="${EPREFIX}/usr/$(get_libdir)/" \
LUA_LIBS="${mylibs}" \
LIB_LIBS="${liblibs}" \