[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gentoo-dev
Subject:    [gentoo-dev] [PATCH] eclass: ELT-patches: Support for cross library linking
From:       Gerhard_Bräunlich <wippbox () gmx ! net>
Date:       2016-08-22 21:40:19
Message-ID: 02214357-85d3-034d-6183-0feaf0910624 () gmx ! net
[Download RAW message or body]

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
-

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic