commit: 05bb5e31e97fc42acb9b229c77e13a40eeb53fbd
Author: Michael Haubenwallner <haubi <AT> gentoo <DOT> org>
AuthorDate: Fri Dec 29 22:35:41 2017 +0000
Commit: Michael Haubenwallner <haubi <AT> gentoo <DOT> org>
CommitDate: Fri Dec 29 22:35:41 2017 +0000
URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=05bb5e31
dev-lang/python-2.7: need -L. first in LDFLAGS
Package-Manager: Portage-2.3.13, Repoman-2.3.3
dev-lang/python/python-2.7.12.ebuild | 13 ++++++-------
dev-lang/python/python-2.7.14.ebuild | 14 +++++++-------
2 files changed, 13 insertions(+), 14 deletions(-)
diff --git a/dev-lang/python/python-2.7.12.ebuild
b/dev-lang/python/python-2.7.12.ebuild
index 040c3847e2..f038c4b118 100644
--- a/dev-lang/python/python-2.7.12.ebuild
+++ b/dev-lang/python/python-2.7.12.ebuild
@@ -229,6 +229,12 @@ src_configure() {
replace-flags -Os -O3 # comment #14
fi
+ # Set LDFLAGS so we link modules with -lpython2.7 correctly.
+ # Needed on FreeBSD unless Python 2.7 is already installed.
+ # Please query BSD team before removing this!
+ # On AIX this is not needed, but would record '.' as runpath.
+ [[ ${CHOST} == *-aix* ]] ||
+ append-ldflags "-L."
if use prefix ; then
# for Python's setup.py not to do false assumptions (only
looking in
@@ -255,13 +261,6 @@ src_configure() {
# http://bugs.python.org/issue15506
export ac_cv_path_PKG_CONFIG=$(tc-getPKG_CONFIG)
- # Set LDFLAGS so we link modules with -lpython2.7 correctly.
- # Needed on FreeBSD unless Python 2.7 is already installed.
- # Please query BSD team before removing this!
- # On AIX this is not needed, but would record '.' as runpath.
- [[ ${CHOST} == *-aix* ]] ||
- append-ldflags "-L."
-
local dbmliborder
if use gdbm; then
dbmliborder+="${dbmliborder:+:}gdbm"
diff --git a/dev-lang/python/python-2.7.14.ebuild
b/dev-lang/python/python-2.7.14.ebuild
index a28d5b2709..2ff87b1a6e 100644
--- a/dev-lang/python/python-2.7.14.ebuild
+++ b/dev-lang/python/python-2.7.14.ebuild
@@ -231,6 +231,13 @@ src_configure() {
replace-flags -Os -O3 # comment #14
fi
+ # Set LDFLAGS so we link modules with -lpython2.7 correctly.
+ # Needed on FreeBSD unless Python 2.7 is already installed.
+ # Please query BSD team before removing this!
+ # On AIX this is not needed, but would record '.' as runpath.
+ [[ ${CHOST} == *-aix* ]] ||
+ append-ldflags "-L."
+
if use prefix ; then
# for Python's setup.py not to do false assumptions (only
looking in
# host paths) we need to make explicit where Prefix stuff is
@@ -256,13 +263,6 @@ src_configure() {
# http://bugs.python.org/issue15506
export ac_cv_path_PKG_CONFIG=$(tc-getPKG_CONFIG)
- # Set LDFLAGS so we link modules with -lpython2.7 correctly.
- # Needed on FreeBSD unless Python 2.7 is already installed.
- # Please query BSD team before removing this!
- # On AIX this is not needed, but would record '.' as runpath.
- [[ ${CHOST} == *-aix* ]] ||
- append-ldflags "-L."
-
local dbmliborder
if use gdbm; then
dbmliborder+="${dbmliborder:+:}gdbm"