Re: .la file status and hint to clear the dependency_libs field
On 2011-05-27 00:17:45 +0200, Michael Biebl wrote:
> Am 26.05.2011 23:26, schrieb Luk Claes:
>
> > There are some good reasons to keep some specific *.la files around,
>
> Just curious: what are these reasons / use case for keeping la files?
They are at least read by libtool. For instance, when building MPFR
(as a normal user):
[...]
7189 stat("/home/vlefevre/software/mpfr/src/libgmp.la", 0x7fffc15d0ae0) = -1 ENOENT (No such file or directory)
7189 stat("/home/vlefevre/software/mpfr/src/libgmp.so", 0x7fffc15d0ae0) = -1 ENOENT (No such file or directory)
7189 stat("/home/vlefevre/software/mpfr/src/libgmp.so", 0x7fffc15d0ae0) = -1 ENOENT (No such file or directory)
7189 stat("/home/vlefevre/software/mpfr/src/libgmp.a", 0x7fffc15d0ae0) = -1 ENOENT (No such file or directory)
7189 stat("/home/vlefevre/x86_64/lib/libgmp.la", 0x7fffc15d0ae0) = -1 ENOENT (No such file or directory)
7189 stat("/home/vlefevre/x86_64/lib/libgmp.so", 0x7fffc15d0ae0) = -1 ENOENT (No such file or directory)
7189 stat("/home/vlefevre/x86_64/lib/libgmp.so", 0x7fffc15d0ae0) = -1 ENOENT (No such file or directory)
7189 stat("/home/vlefevre/x86_64/lib/libgmp.a", 0x7fffc15d0ae0) = -1 ENOENT (No such file or directory)
7189 stat("/usr/lib/gcc/x86_64-linux-gnu/4.6.1/libgmp.la", 0x7fffc15d0ae0) = -1 ENOENT (No such file or directory)
7189 stat("/usr/lib/gcc/x86_64-linux-gnu/4.6.1/libgmp.so", 0x7fffc15d0ae0) = -1 ENOENT (No such file or directory)
7189 stat("/usr/lib/gcc/x86_64-linux-gnu/4.6.1/libgmp.so", 0x7fffc15d0ae0) = -1 ENOENT (No such file or directory)
7189 stat("/usr/lib/gcc/x86_64-linux-gnu/4.6.1/libgmp.a", 0x7fffc15d0ae0) = -1 ENOENT (No such file or directory)
7189 stat("/usr/lib/libgmp.la", {st_mode=S_IFREG|0644, st_size=927, ...}) = 0
7189 stat("/usr/lib/libgmp.la", {st_mode=S_IFREG|0644, st_size=927, ...}) = 0
7189 stat("/usr/lib/libgmp.la", {st_mode=S_IFREG|0644, st_size=927, ...}) = 0
7189 geteuid() = 1000
7189 getgid() = 1000
7189 getegid() = 1000
7189 getgroups(0, NULL) = 14
7189 getgroups(14, [4, 20, 24, 25, 29, 44, 46, 103, 105, 111, 112, 115, 117, 1000]) = 14
7189 fcntl(5, F_DUPFD, 10) = -1 EBADF (Bad file descriptor)
7189 dup2(0, 5) = 5
7189 open("/usr/lib/libgmp.la", O_RDONLY) = 3
[...]
Either the information provided by /usr/lib/libgmp.la is important
and this file should be kept, or libtool should not attempt to read
the file... unless this doesn't matter for the specific case of
/usr/lib under Debian.
--
Vincent Lefèvre <vincent@vinc17.net> - Web: <http://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / Arénaire project (LIP, ENS-Lyon)
Reply to: