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

Re: library reduction problems in recent rootdisk.sh



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.

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.

MfG
        Goswin



Reply to: