This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: RFC: Should we link dynamic tests to use the newly built glibcdirctly
- From: Siddhesh Poyarekar <siddhesh at redhat dot com>
- To: "H.J. Lu" <hjl dot tools at gmail dot com>
- Cc: GNU C Library <libc-alpha at sourceware dot org>
- Date: Mon, 8 Oct 2012 10:28:52 +0530
- Subject: Re: RFC: Should we link dynamic tests to use the newly built glibcdirctly
- References: <CAMe9rOrK3_CD7=FW7ePMCetxotk=OF9MO4WMLy-bNZxPP+Tetg@mail.gmail.com>
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