This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [rfc] dont use absolute paths in ldscripts if they arent needed


On Sun, Apr 02, 2006 at 05:44:29AM -0400, Mike Frysinger wrote:
> i've been playing with cross-compilers in Gentoo when i noticed that the 
> ldscripts installed by glibc always use full paths.  in a normal setup, these 
> are clearly required as libc.so.6 goes in /lib/ while libc.so goes 
> in /usr/lib/.  in a cross-compiler setup though, you usually have libc.so.6 
> and libc.so in the same directory (like /usr/target/lib/).  encoding this 
> full path can cause problems when using sysroot options with binutils and 
> gcc.  crosstool gets around this by simply running a sed on the linker 
> scripts and deleting all leading path elements.

You're confusing two different things here.  If you use a sysrooted
toolchain, this is a non-problem; the linker prepends the sysroot
to the absolute path.  If you are using /usr/foo-linux/lib, then you're
probably not using a sysroot.

-- 
Daniel Jacobowitz
CodeSourcery


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]