1 |
On 10/05/2010 10:20 PM, Ciaran McCreesh wrote: |
2 |
> as-needed fixes nothing. It works around some things, and introduces |
3 |
> some fairly icky problems as consequences. See the deleted comments on |
4 |
> Diego's blog posts for details. |
5 |
|
6 |
We discussed that to death, you are wrong abusing overlinking in your |
7 |
pet project and what you were asking for is exactly the as-needed behaviour. |
8 |
|
9 |
>> the problem is that libtool mangles also library search paths when |
10 |
>> using .la files and that breaks in a number of situations we have in |
11 |
>> some sort of normal uses of Gentoo. |
12 |
|
13 |
> Ah, so you'll be giving us a patch to test for that too, right? Fixing |
14 |
> the actual problem, rather than adding workarounds to a thousand or so |
15 |
> packages... |
16 |
|
17 |
Apparently you do not know how libtool works or you are deliberately |
18 |
ignoring it... The patch is stupid (see below) but then you'd have to |
19 |
run libtoolize on every package you want to fix. |
20 |
|
21 |
@@ -5936,7 +5936,7 @@ |
22 |
searchdirs="$newlib_search_path $lib_search_path |
23 |
$sys_lib_search_path $shlib_search_path" |
24 |
fi |
25 |
for searchdir in $searchdirs; do |
26 |
- for search_ext in .la $std_shrext .so .a; do |
27 |
+ for search_ext in $std_shrext .so .a .la; do |
28 |
# Search the libtool library |
29 |
lib="$searchdir/lib${name}${search_ext}" |
30 |
if test -f "$lib"; then |
31 |
|
32 |
|
33 |
|
34 |
lu |
35 |
|
36 |
-- |
37 |
|
38 |
Luca Barbato |
39 |
Gentoo/linux |
40 |
http://dev.gentoo.org/~lu_zero |