RFC: Should we link dynamic tests to use the newly built glibc dirctly
Siddhesh Poyarekar
siddhesh@redhat.com
Mon Oct 8 04:59:00 GMT 2012
On Sat, 6 Oct 2012 16:13:32 -0700, H.J. wrote:
> -Wl,-dynamic-linker=/export/build/gnu/glibc/build-x86_64-linux/elf/ld-linux-x86-64.so.2
We already do this AFAICT...
> -Wl,-rpath-link=/export/build/gnu/glibc/build-x86_64-linux:/export/build/gnu/glibc/build-x86_64-linux/math:/export/build/gnu/glibc/build-x86_64-linux/elf:/export/build/gnu/glibc/build-x86_64-linux/dlfcn:/export/build/gnu/glibc/build-x86_64-linux/nss:/export/build/gnu/glibc/build-x86_64-linux/nis:/export/build/gnu/glibc/build-x86_64-linux/rt:/export/build/gnu/glibc/build-x86_64-linux/resolv:/export/build/gnu/glibc/build-x86_64-linux/crypt:/export/build/gnu/glibc/build-x86_64-linux/nptl
... so this is the only problem. The --rpath-link needs to be replaced
with --rpath. The rpath-link only helps the linker search during
linking, but it does not add the RPATH entry in the binary, which the
latter does.
Siddhesh
More information about the Libc-alpha
mailing list