[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: library reduction problems in recent rootdisk.sh



On Wed, Nov 14, 2001 at 12:33:26PM +0100, Goswin Brederlow wrote:
> Erik Andersen <andersen@codepoet.org> writes:
> 
> > On Tue Nov 13, 2001 at 06:16:23AM -0900, Ethan Benson wrote:
> > > 
> > >  # Make the dynamic linker executable
> > > -ld_file = find_lib("ld-linux.so.2")
> > > +ld_file = find_lib("ld.so.1")
> > >  ld_file_name = os.path.basename(ld_file)
> > >  os.chmod(dest_path + "/" + ld_file_name, 0755)
> > 
> > You want to use something like the following makefile snippet:
> > 
> > SYSTEM_LDSO=$(shell for each in `$(CC) -print-search-dirs| \
> >     grep ^libraries| sed -e 's/^libraries: //' -e 's/:/ /g'`;\
> >         do ls $$each/ld.so.* 2>/dev/null;done)
> 
> a os.getenv("SYSTEM_LDSO") or whatever its called in the rootdisk.sh
> should do the trick. I hope it gets exported to subshells/programs.

its easy enough to export it if we need to, i doubt it would cause any harm.

> I will look into that.
> 
> Important is now if there are any archs left with the "atexit"
> problem. I only saw one out of two persons, who had the problem,
> saying its gone now.
> 
> Please say its gone or try the earlier test and send the output.

mklibs.py is already used on a arch by arch basis defined in
rootdisk.sh, any arch which wants to switch simply needs to add thiers
to the test.  this is the best way to do it, its hard enough porting
all this without forcing arbitrary things like this on them all
unilatteraly.  

-- 
Ethan Benson
http://www.alaska.net/~erbenson/

Attachment: pgpiSiIbIWfLM.pgp
Description: PGP signature


Reply to: