1 |
commit: 05bb5e31e97fc42acb9b229c77e13a40eeb53fbd |
2 |
Author: Michael Haubenwallner <haubi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Dec 29 22:35:41 2017 +0000 |
4 |
Commit: Michael Haubenwallner <haubi <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Dec 29 22:35:41 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=05bb5e31 |
7 |
|
8 |
dev-lang/python-2.7: need -L. first in LDFLAGS |
9 |
|
10 |
Package-Manager: Portage-2.3.13, Repoman-2.3.3 |
11 |
|
12 |
dev-lang/python/python-2.7.12.ebuild | 13 ++++++------- |
13 |
dev-lang/python/python-2.7.14.ebuild | 14 +++++++------- |
14 |
2 files changed, 13 insertions(+), 14 deletions(-) |
15 |
|
16 |
diff --git a/dev-lang/python/python-2.7.12.ebuild b/dev-lang/python/python-2.7.12.ebuild |
17 |
index 040c3847e2..f038c4b118 100644 |
18 |
--- a/dev-lang/python/python-2.7.12.ebuild |
19 |
+++ b/dev-lang/python/python-2.7.12.ebuild |
20 |
@@ -229,6 +229,12 @@ src_configure() { |
21 |
replace-flags -Os -O3 # comment #14 |
22 |
fi |
23 |
|
24 |
+ # Set LDFLAGS so we link modules with -lpython2.7 correctly. |
25 |
+ # Needed on FreeBSD unless Python 2.7 is already installed. |
26 |
+ # Please query BSD team before removing this! |
27 |
+ # On AIX this is not needed, but would record '.' as runpath. |
28 |
+ [[ ${CHOST} == *-aix* ]] || |
29 |
+ append-ldflags "-L." |
30 |
|
31 |
if use prefix ; then |
32 |
# for Python's setup.py not to do false assumptions (only looking in |
33 |
@@ -255,13 +261,6 @@ src_configure() { |
34 |
# http://bugs.python.org/issue15506 |
35 |
export ac_cv_path_PKG_CONFIG=$(tc-getPKG_CONFIG) |
36 |
|
37 |
- # Set LDFLAGS so we link modules with -lpython2.7 correctly. |
38 |
- # Needed on FreeBSD unless Python 2.7 is already installed. |
39 |
- # Please query BSD team before removing this! |
40 |
- # On AIX this is not needed, but would record '.' as runpath. |
41 |
- [[ ${CHOST} == *-aix* ]] || |
42 |
- append-ldflags "-L." |
43 |
- |
44 |
local dbmliborder |
45 |
if use gdbm; then |
46 |
dbmliborder+="${dbmliborder:+:}gdbm" |
47 |
|
48 |
diff --git a/dev-lang/python/python-2.7.14.ebuild b/dev-lang/python/python-2.7.14.ebuild |
49 |
index a28d5b2709..2ff87b1a6e 100644 |
50 |
--- a/dev-lang/python/python-2.7.14.ebuild |
51 |
+++ b/dev-lang/python/python-2.7.14.ebuild |
52 |
@@ -231,6 +231,13 @@ src_configure() { |
53 |
replace-flags -Os -O3 # comment #14 |
54 |
fi |
55 |
|
56 |
+ # Set LDFLAGS so we link modules with -lpython2.7 correctly. |
57 |
+ # Needed on FreeBSD unless Python 2.7 is already installed. |
58 |
+ # Please query BSD team before removing this! |
59 |
+ # On AIX this is not needed, but would record '.' as runpath. |
60 |
+ [[ ${CHOST} == *-aix* ]] || |
61 |
+ append-ldflags "-L." |
62 |
+ |
63 |
if use prefix ; then |
64 |
# for Python's setup.py not to do false assumptions (only looking in |
65 |
# host paths) we need to make explicit where Prefix stuff is |
66 |
@@ -256,13 +263,6 @@ src_configure() { |
67 |
# http://bugs.python.org/issue15506 |
68 |
export ac_cv_path_PKG_CONFIG=$(tc-getPKG_CONFIG) |
69 |
|
70 |
- # Set LDFLAGS so we link modules with -lpython2.7 correctly. |
71 |
- # Needed on FreeBSD unless Python 2.7 is already installed. |
72 |
- # Please query BSD team before removing this! |
73 |
- # On AIX this is not needed, but would record '.' as runpath. |
74 |
- [[ ${CHOST} == *-aix* ]] || |
75 |
- append-ldflags "-L." |
76 |
- |
77 |
local dbmliborder |
78 |
if use gdbm; then |
79 |
dbmliborder+="${dbmliborder:+:}gdbm" |