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

Re: library reduction problems in recent rootdisk.sh



On Tue, Nov 13, 2001 at 06:12:13PM -0700, Erik Andersen wrote:
> 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)

well if python made any sense to me at all i would have probably
already written a real patch for it ;-)

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

Attachment: pgp44KaYT3qQk.pgp
Description: PGP signature


Reply to: