1 |
commit: db548619f2d5a39f8bb523c60e99d20cf84ef513 |
2 |
Author: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Nov 28 20:22:45 2015 +0000 |
4 |
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Nov 28 20:25:53 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=db548619 |
7 |
|
8 |
sys-libs/db: move -Wl,--default-symver back after tc-ld-is-gold #566942 |
9 |
|
10 |
The GNU gold test will fail if given invalid linker flags, so make sure |
11 |
we test for it before adding various linker flags (that assume bfd). |
12 |
|
13 |
sys-libs/db/db-4.8.30-r2.ebuild | 16 ++++++---------- |
14 |
sys-libs/db/db-5.3.28-r2.ebuild | 16 ++++++---------- |
15 |
sys-libs/db/db-6.0.30-r1.ebuild | 16 ++++++---------- |
16 |
sys-libs/db/db-6.0.35.ebuild | 16 ++++++---------- |
17 |
sys-libs/db/db-6.1.26.ebuild | 16 ++++++---------- |
18 |
5 files changed, 30 insertions(+), 50 deletions(-) |
19 |
|
20 |
diff --git a/sys-libs/db/db-4.8.30-r2.ebuild b/sys-libs/db/db-4.8.30-r2.ebuild |
21 |
index abb91de..e556706 100644 |
22 |
--- a/sys-libs/db/db-4.8.30-r2.ebuild |
23 |
+++ b/sys-libs/db/db-4.8.30-r2.ebuild |
24 |
@@ -88,16 +88,6 @@ src_prepare() { |
25 |
-e "s/__EDIT_DB_VERSION__/$DB_VERSION/g" configure || die |
26 |
} |
27 |
|
28 |
-src_configure() { |
29 |
- # Add linker versions to the symbols. Easier to do, and safer than header file |
30 |
- # mumbo jumbo. |
31 |
- if use userland_GNU ; then |
32 |
- append-ldflags -Wl,--default-symver |
33 |
- fi |
34 |
- |
35 |
- multilib-minimal_src_configure |
36 |
-} |
37 |
- |
38 |
multilib_src_configure() { |
39 |
local myconf=() |
40 |
|
41 |
@@ -110,6 +100,12 @@ multilib_src_configure() { |
42 |
is-flagq -O[s123] || append-flags -O2 |
43 |
fi |
44 |
|
45 |
+ # Add linker versions to the symbols. Easier to do, and safer than header file |
46 |
+ # mumbo jumbo. |
47 |
+ if use userland_GNU ; then |
48 |
+ append-ldflags -Wl,--default-symver |
49 |
+ fi |
50 |
+ |
51 |
# use `set` here since the java opts will contain whitespace |
52 |
if multilib_is_native_abi && use java ; then |
53 |
myconf+=( |
54 |
|
55 |
diff --git a/sys-libs/db/db-5.3.28-r2.ebuild b/sys-libs/db/db-5.3.28-r2.ebuild |
56 |
index fa3f8d6..937d045 100644 |
57 |
--- a/sys-libs/db/db-5.3.28-r2.ebuild |
58 |
+++ b/sys-libs/db/db-5.3.28-r2.ebuild |
59 |
@@ -103,16 +103,6 @@ src_prepare() { |
60 |
done |
61 |
} |
62 |
|
63 |
-src_configure() { |
64 |
- # Add linker versions to the symbols. Easier to do, and safer than header file |
65 |
- # mumbo jumbo. |
66 |
- if use userland_GNU ; then |
67 |
- append-ldflags -Wl,--default-symver |
68 |
- fi |
69 |
- |
70 |
- multilib-minimal_src_configure |
71 |
-} |
72 |
- |
73 |
multilib_src_configure() { |
74 |
local myconf=() |
75 |
|
76 |
@@ -125,6 +115,12 @@ multilib_src_configure() { |
77 |
is-flagq -O[s123] || append-flags -O2 |
78 |
fi |
79 |
|
80 |
+ # Add linker versions to the symbols. Easier to do, and safer than header file |
81 |
+ # mumbo jumbo. |
82 |
+ if use userland_GNU ; then |
83 |
+ append-ldflags -Wl,--default-symver |
84 |
+ fi |
85 |
+ |
86 |
# use `set` here since the java opts will contain whitespace |
87 |
if multilib_is_native_abi && use java ; then |
88 |
myconf+=( |
89 |
|
90 |
diff --git a/sys-libs/db/db-6.0.30-r1.ebuild b/sys-libs/db/db-6.0.30-r1.ebuild |
91 |
index 64433d2..8192bec 100644 |
92 |
--- a/sys-libs/db/db-6.0.30-r1.ebuild |
93 |
+++ b/sys-libs/db/db-6.0.30-r1.ebuild |
94 |
@@ -104,16 +104,6 @@ src_prepare() { |
95 |
done |
96 |
} |
97 |
|
98 |
-src_configure() { |
99 |
- # Add linker versions to the symbols. Easier to do, and safer than header file |
100 |
- # mumbo jumbo. |
101 |
- if use userland_GNU ; then |
102 |
- append-ldflags -Wl,--default-symver |
103 |
- fi |
104 |
- |
105 |
- multilib-minimal_src_configure |
106 |
-} |
107 |
- |
108 |
multilib_src_configure() { |
109 |
local myconf=() |
110 |
|
111 |
@@ -126,6 +116,12 @@ multilib_src_configure() { |
112 |
is-flagq -O[s123] || append-flags -O2 |
113 |
fi |
114 |
|
115 |
+ # Add linker versions to the symbols. Easier to do, and safer than header file |
116 |
+ # mumbo jumbo. |
117 |
+ if use userland_GNU ; then |
118 |
+ append-ldflags -Wl,--default-symver |
119 |
+ fi |
120 |
+ |
121 |
# use `set` here since the java opts will contain whitespace |
122 |
if multilib_is_native_abi && use java ; then |
123 |
myconf+=( |
124 |
|
125 |
diff --git a/sys-libs/db/db-6.0.35.ebuild b/sys-libs/db/db-6.0.35.ebuild |
126 |
index 357f5ac..6fcfe90 100644 |
127 |
--- a/sys-libs/db/db-6.0.35.ebuild |
128 |
+++ b/sys-libs/db/db-6.0.35.ebuild |
129 |
@@ -104,16 +104,6 @@ src_prepare() { |
130 |
done |
131 |
} |
132 |
|
133 |
-src_configure() { |
134 |
- # Add linker versions to the symbols. Easier to do, and safer than header file |
135 |
- # mumbo jumbo. |
136 |
- if use userland_GNU ; then |
137 |
- append-ldflags -Wl,--default-symver |
138 |
- fi |
139 |
- |
140 |
- multilib-minimal_src_configure |
141 |
-} |
142 |
- |
143 |
multilib_src_configure() { |
144 |
local myconf=() |
145 |
|
146 |
@@ -126,6 +116,12 @@ multilib_src_configure() { |
147 |
is-flagq -O[s123] || append-flags -O2 |
148 |
fi |
149 |
|
150 |
+ # Add linker versions to the symbols. Easier to do, and safer than header file |
151 |
+ # mumbo jumbo. |
152 |
+ if use userland_GNU ; then |
153 |
+ append-ldflags -Wl,--default-symver |
154 |
+ fi |
155 |
+ |
156 |
# use `set` here since the java opts will contain whitespace |
157 |
if multilib_is_native_abi && use java ; then |
158 |
myconf+=( |
159 |
|
160 |
diff --git a/sys-libs/db/db-6.1.26.ebuild b/sys-libs/db/db-6.1.26.ebuild |
161 |
index 22cf36f..4e9a232 100644 |
162 |
--- a/sys-libs/db/db-6.1.26.ebuild |
163 |
+++ b/sys-libs/db/db-6.1.26.ebuild |
164 |
@@ -104,16 +104,6 @@ src_prepare() { |
165 |
done |
166 |
} |
167 |
|
168 |
-src_configure() { |
169 |
- # Add linker versions to the symbols. Easier to do, and safer than header file |
170 |
- # mumbo jumbo. |
171 |
- if use userland_GNU ; then |
172 |
- append-ldflags -Wl,--default-symver |
173 |
- fi |
174 |
- |
175 |
- multilib-minimal_src_configure |
176 |
-} |
177 |
- |
178 |
multilib_src_configure() { |
179 |
local myconf=() |
180 |
|
181 |
@@ -126,6 +116,12 @@ multilib_src_configure() { |
182 |
is-flagq -O[s123] || append-flags -O2 |
183 |
fi |
184 |
|
185 |
+ # Add linker versions to the symbols. Easier to do, and safer than header file |
186 |
+ # mumbo jumbo. |
187 |
+ if use userland_GNU ; then |
188 |
+ append-ldflags -Wl,--default-symver |
189 |
+ fi |
190 |
+ |
191 |
# use `set` here since the java opts will contain whitespace |
192 |
if multilib_is_native_abi && use java ; then |
193 |
myconf+=( |