1 |
On 09-11-2008 18:34:31 +0200, Peter Alfredsen wrote: |
2 |
> On Sunday 09 November 2008, Fabian Groffen wrote: |
3 |
> > On 09-11-2008 18:04:05 +0200, Peter Alfredsen wrote: |
4 |
> > > + # If this is a non-ELF system, chances are good that the .la |
5 |
> > > files will be needed. + if type -P scanelf &> /dev/null |
6 |
> > |
7 |
> > I think this is a not so cool way to check for an ELF system. |
8 |
> |
9 |
> Indeed, I think it's a horrid way. Please find a better one. |
10 |
|
11 |
% uname -a |
12 |
Darwin tefnut.cheops.ods.org 8.11.0 Darwin Kernel Version 8.11.0: Wed Oct 10 18:26:00 PDT 2007; root:xnu-792.24.17~1/RELEASE_PPC Power Macintosh powerpc PowerMac8,2 Darwin |
13 |
% scanelf --version |
14 |
pax-utils-0.1.18_pre0004: scanelf.c compiled Oct 19 2008 |
15 |
$Id: scanelf.c,v 1.194 2008/09/29 06:05:55 vapier Exp $ |
16 |
scanelf written for Gentoo by <solar and vapier @ gentoo.org> |
17 |
% scanmacho --version |
18 |
pax-utils-0.1.18_pre0004: scanmacho.c compiled Oct 19 2008 |
19 |
$Id: scanmacho.c,v 1.5 2008/10/19 18:11:59 grobian Exp $ |
20 |
scanmacho written for Gentoo by <solar, vapier and grobian @ gentoo.org> |
21 |
|
22 |
You could identify ELF a bit more reliable by running file on e.g. |
23 |
"${ROOT}/bin/bash", or just by building a list of CHOSTs that you know |
24 |
are ELF systems. |
25 |
|
26 |
> > > + debug-print "scanelf not found, this appears to be a non-ELF |
27 |
> > > system." + debug-print "non-ELF systems are likely to need .la |
28 |
> > > files." + debug-print ".la files not removed from ${TARGET}" |
29 |
> > |
30 |
> > rationale? |
31 |
> |
32 |
> "I've been told" that .la files are really only needed on non-ELF |
33 |
> systems and with plugin systems that use dlopen. I actually have no way |
34 |
> of knowing that the .la files are needed on those arches, but I had |
35 |
> your archs in mind when doing the patch. |
36 |
|
37 |
Ok. What worries me though is that this would result in some systems |
38 |
having libtool files whereas the majority does not. E.g. removing them |
39 |
apparently fixes a problem that then crops up on those systems or |
40 |
something. Can't think of any atm. |
41 |
|
42 |
|
43 |
-- |
44 |
Fabian Groffen |
45 |
Gentoo on a different level |