* [gentoo-dev] [PATCH] eclass: ELT-patches: Support for cross library linking
@ 2016-08-22 21:40 Gerhard Bräunlich
0 siblings, 0 replies; only message in thread
From: Gerhard Bräunlich @ 2016-08-22 21:40 UTC (permalink / raw)
To: gentoo-dev
Dear developers
I would like to propose the following patch to
eclass/ELT-patches/cross/2.4.3
Cross linking in dev-scheme/guile-1.8.8-r2 and net-libs/gnutls-3.4.14
fails (see https://bugs.gentoo.org/show_bug.cgi?id=590404).
Best regards
Gerhard Bräunlich
--- ltmain.sh
+++ ltmain.sh
-@@ -8367,7 +8367,7 @@
+@@ -7955,13 +7955,13 @@
+
+ # Find the relevant object directory and library name.
+ if test yes = "$installed"; then
+- if test ! -f "$lt_sysroot$libdir/$linklib" && test -f
"$abs_ladir/$linklib"; then
++ if test ! -f "${lt_sysroot:-${SYSROOT}}$libdir/$linklib" && test -f
"$abs_ladir/$linklib"; then
+ func_warning "library '$lib' was moved."
+ dir=$ladir
+ absdir=$abs_ladir
+ libdir=$abs_ladir
+ else
+- dir=$lt_sysroot$libdir
++ dir=${lt_sysroot:-${SYSROOT}}$libdir
+ absdir=$lt_sysroot$libdir
+ fi
+ test yes = "$hardcode_automatic" && avoidtemprpath=yes
+@@ -8344,7 +8344,7 @@
test no = "$hardcode_direct_absolute"; then
add=$libdir/$linklib
elif test yes = "$hardcode_minus_L"; then
@@ -9,7 +25,7 @@
add=-l$name
elif test yes = "$hardcode_shlibpath_var"; then
case :$finalize_shlibpath: in
-@@ -8384,7 +8384,7 @@
+@@ -8361,7 +8361,7 @@
fi
else
# We cannot seem to hardcode it, guess we'll fake it.
@@ -18,4 +34,3 @@
# Try looking first in the location we're being installed to.
if test -n "$inst_prefix_dir"; then
case $libdir in
-
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-08-22 21:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-22 21:40 [gentoo-dev] [PATCH] eclass: ELT-patches: Support for cross library linking Gerhard Bräunlich
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox