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)
-Erik
--
Erik B. Andersen http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--
Attachment:
pgp5hnTL2_eV1.pgp
Description: PGP signature