commit:     6b929c4c6976b5ce78c59e01e205e20f919d0212
Author:     Michael Haubenwallner <michael.haubenwallner <AT> ssi-schaefer 
<DOT> com>
AuthorDate: Thu May 12 13:08:36 2016 +0000
Commit:     Michael Haubenwallner <haubi <AT> gentoo <DOT> org>
CommitDate: Thu May 12 13:10:22 2016 +0000
URL:        https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=6b929c4c

python-2.7.11: need -L. first in LDFLAGS

 dev-lang/python/python-2.7.11.ebuild | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/dev-lang/python/python-2.7.11.ebuild 
b/dev-lang/python/python-2.7.11.ebuild
index 4906dc2..c43fd1f 100644
--- a/dev-lang/python/python-2.7.11.ebuild
+++ b/dev-lang/python/python-2.7.11.ebuild
@@ -210,6 +210,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
@@ -233,13 +240,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"

Reply via email to