* [gentoo-commits] gentoo-x86 commit in eclass/ELT-patches/sys-lib-dlsearch: 2.4
@ 2011-10-03 4:05 Mike Frysinger (vapier)
0 siblings, 0 replies; only message in thread
From: Mike Frysinger (vapier) @ 2011-10-03 4:05 UTC (permalink / raw
To: gentoo-commits
vapier 11/10/03 04:05:48
Added: 2.4
Log:
fix relinking when cross-compiling with a toolchain that doesnt use /lib as its native libdir
Revision Changes Path
1.1 eclass/ELT-patches/sys-lib-dlsearch/2.4
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ELT-patches/sys-lib-dlsearch/2.4?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ELT-patches/sys-lib-dlsearch/2.4?rev=1.1&content-type=text/plain
Index: 2.4
===================================================================
the linux target parses /etc/ld.so.conf to see what paths are
searched at runtime, and hardcodes /lib /usr/lib as a fallback.
this works poorly when cross-compiling, so tweak the behavior:
- search $SYSROOT/etc/ld.so.conf
- default to Gentoo's notion of the active multilib
--- a/configure
+++ b/configure
@@ -10405,9 +10405,9 @@
hardcode_into_libs=yes
# Append ld.so.conf contents to the search path
- if test -f /etc/ld.so.conf; then
- lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
- sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
+ if test -f "$SYSROOT"/etc/ld.so.conf; then
+ lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < "$SYSROOT"/etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
+ sys_lib_dlsearch_path_spec="/@GENTOO_LIBDIR@ /usr/@GENTOO_LIBDIR@ $lt_ld_extra"
fi
# We used to test for /lib/ld.so.1 and disable shared libraries on
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-10-03 4:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-03 4:05 [gentoo-commits] gentoo-x86 commit in eclass/ELT-patches/sys-lib-dlsearch: 2.4 Mike Frysinger (vapier)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox