1 |
commit: 2201dbb7de7aaf045761d78735a445cecca16f44 |
2 |
Author: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Dec 24 08:49:05 2016 +0000 |
4 |
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Dec 24 09:07:25 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2201dbb7 |
7 |
|
8 |
dev-util/strace: set up default build settings #602192 |
9 |
|
10 |
dev-util/strace/strace-4.13.ebuild | 10 +++++++++- |
11 |
dev-util/strace/strace-4.14.ebuild | 10 +++++++++- |
12 |
dev-util/strace/strace-4.15.ebuild | 10 +++++++++- |
13 |
dev-util/strace/strace-9999.ebuild | 10 +++++++++- |
14 |
4 files changed, 36 insertions(+), 4 deletions(-) |
15 |
|
16 |
diff --git a/dev-util/strace/strace-4.13.ebuild b/dev-util/strace/strace-4.13.ebuild |
17 |
index b0c7288..9804db5 100644 |
18 |
--- a/dev-util/strace/strace-4.13.ebuild |
19 |
+++ b/dev-util/strace/strace-4.13.ebuild |
20 |
@@ -3,7 +3,7 @@ |
21 |
|
22 |
EAPI="5" |
23 |
|
24 |
-inherit flag-o-matic eutils |
25 |
+inherit flag-o-matic eutils toolchain-funcs |
26 |
|
27 |
if [[ ${PV} == "9999" ]] ; then |
28 |
EGIT_REPO_URI="git://git.code.sf.net/p/strace/code" |
29 |
@@ -48,6 +48,14 @@ src_prepare() { |
30 |
} |
31 |
|
32 |
src_configure() { |
33 |
+ # Set up the default build settings, and then use the naems strace expects. |
34 |
+ tc-export_build_env BUILD_{CC,CPP} |
35 |
+ local v bv |
36 |
+ for v in CC CPP {C,CPP,LD}FLAGS ; do |
37 |
+ bv="BUILD_${v}" |
38 |
+ export "${v}_FOR_BUILD=${!bv}" |
39 |
+ done |
40 |
+ |
41 |
econf $(use_with unwind libunwind) |
42 |
} |
43 |
|
44 |
|
45 |
diff --git a/dev-util/strace/strace-4.14.ebuild b/dev-util/strace/strace-4.14.ebuild |
46 |
index 6c5ede4..df019fe 100644 |
47 |
--- a/dev-util/strace/strace-4.14.ebuild |
48 |
+++ b/dev-util/strace/strace-4.14.ebuild |
49 |
@@ -3,7 +3,7 @@ |
50 |
|
51 |
EAPI="5" |
52 |
|
53 |
-inherit flag-o-matic eutils |
54 |
+inherit flag-o-matic eutils toolchain-funcs |
55 |
|
56 |
if [[ ${PV} == "9999" ]] ; then |
57 |
EGIT_REPO_URI="git://git.code.sf.net/p/strace/code" |
58 |
@@ -48,6 +48,14 @@ src_prepare() { |
59 |
} |
60 |
|
61 |
src_configure() { |
62 |
+ # Set up the default build settings, and then use the naems strace expects. |
63 |
+ tc-export_build_env BUILD_{CC,CPP} |
64 |
+ local v bv |
65 |
+ for v in CC CPP {C,CPP,LD}FLAGS ; do |
66 |
+ bv="BUILD_${v}" |
67 |
+ export "${v}_FOR_BUILD=${!bv}" |
68 |
+ done |
69 |
+ |
70 |
econf $(use_with unwind libunwind) |
71 |
} |
72 |
|
73 |
|
74 |
diff --git a/dev-util/strace/strace-4.15.ebuild b/dev-util/strace/strace-4.15.ebuild |
75 |
index 6c5ede4..df019fe 100644 |
76 |
--- a/dev-util/strace/strace-4.15.ebuild |
77 |
+++ b/dev-util/strace/strace-4.15.ebuild |
78 |
@@ -3,7 +3,7 @@ |
79 |
|
80 |
EAPI="5" |
81 |
|
82 |
-inherit flag-o-matic eutils |
83 |
+inherit flag-o-matic eutils toolchain-funcs |
84 |
|
85 |
if [[ ${PV} == "9999" ]] ; then |
86 |
EGIT_REPO_URI="git://git.code.sf.net/p/strace/code" |
87 |
@@ -48,6 +48,14 @@ src_prepare() { |
88 |
} |
89 |
|
90 |
src_configure() { |
91 |
+ # Set up the default build settings, and then use the naems strace expects. |
92 |
+ tc-export_build_env BUILD_{CC,CPP} |
93 |
+ local v bv |
94 |
+ for v in CC CPP {C,CPP,LD}FLAGS ; do |
95 |
+ bv="BUILD_${v}" |
96 |
+ export "${v}_FOR_BUILD=${!bv}" |
97 |
+ done |
98 |
+ |
99 |
econf $(use_with unwind libunwind) |
100 |
} |
101 |
|
102 |
|
103 |
diff --git a/dev-util/strace/strace-9999.ebuild b/dev-util/strace/strace-9999.ebuild |
104 |
index 6c5ede4..df019fe 100644 |
105 |
--- a/dev-util/strace/strace-9999.ebuild |
106 |
+++ b/dev-util/strace/strace-9999.ebuild |
107 |
@@ -3,7 +3,7 @@ |
108 |
|
109 |
EAPI="5" |
110 |
|
111 |
-inherit flag-o-matic eutils |
112 |
+inherit flag-o-matic eutils toolchain-funcs |
113 |
|
114 |
if [[ ${PV} == "9999" ]] ; then |
115 |
EGIT_REPO_URI="git://git.code.sf.net/p/strace/code" |
116 |
@@ -48,6 +48,14 @@ src_prepare() { |
117 |
} |
118 |
|
119 |
src_configure() { |
120 |
+ # Set up the default build settings, and then use the naems strace expects. |
121 |
+ tc-export_build_env BUILD_{CC,CPP} |
122 |
+ local v bv |
123 |
+ for v in CC CPP {C,CPP,LD}FLAGS ; do |
124 |
+ bv="BUILD_${v}" |
125 |
+ export "${v}_FOR_BUILD=${!bv}" |
126 |
+ done |
127 |
+ |
128 |
econf $(use_with unwind libunwind) |
129 |
} |