1 |
Am 31.10.2010 09:28, schrieb Christopher Schwan: |
2 |
> Hi, |
3 |
> |
4 |
> I followed this discussion quietly until now - I wonder why no one (?) has |
5 |
> mentioned the autotool-utils.eclass which is dedicated for this purpose (la- |
6 |
> file removal, static-libs USE-flag, etc), I think. This eclass also provides a |
7 |
> function "remove_libtool_files" which does what "delete_libtool_archives" would |
8 |
> do, but it also checks for situation where the files would be needed. |
9 |
> |
10 |
> On Sunday 31 October 2010 05:28:42 Jorge Manuel B. S. Vicetto wrote: |
11 |
>> Hi. |
12 |
>> |
13 |
>> As outlined in the global email about this issue, this email is to start |
14 |
>> a thread about the eutils function. Please reply to this thread if you |
15 |
>> have any comments about this point. |
16 |
>> |
17 |
>> 1. Add a function to eutils to deal with the removal of the .la files. |
18 |
>> |
19 |
>> delete_libtool_archives() { find "${@:$D}" -name '*.la' -delete } |
20 |
>> |
21 |
>> That function was suggested by Diego, but Arfrever has argued that we |
22 |
>> should replace : with - as '"${@:$D}" expands to a subarray containing |
23 |
>> elements starting with element with index $D (where element 0 is $0)'. |
24 |
>> The point in having this function in eutils is to ensure we use a |
25 |
>> consistent way to address the .la files. This will also make it much |
26 |
>> easier to adapt or review this function if needed. |
27 |
> |
28 |
> Cheers, |
29 |
> |
30 |
> Christopher |
31 |
> |
32 |
> |
33 |
|
34 |
Please dont top post, it makes it harder to read threads. |
35 |
|
36 |
That suggested line will remove all .la files blindly, but there are 2 types of .la files: |
37 |
-those, which are only used for linking/static files |
38 |
-those, which are used at runtime, e.g. for plugins |
39 |
|
40 |
The line should exclude those .la files, which contain "shouldnotlinkto=yes" or directly use the |
41 |
autotools-utils eclass as suggested, since it already contains this functionality together with a |
42 |
nice USE flag (static-libs) for it. |
43 |
|
44 |
|
45 |
-- |
46 |
Thomas Sachau |
47 |
|
48 |
Gentoo Linux Developer |