From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 8D4D013832E for ; Mon, 22 Aug 2016 21:38:14 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2FA0421C095; Mon, 22 Aug 2016 21:38:06 +0000 (UTC) Received: from mout.gmx.net (mout.gmx.net [212.227.15.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E013121C054 for ; Mon, 22 Aug 2016 21:38:04 +0000 (UTC) Received: from [192.168.0.80] ([95.90.212.244]) by mail.gmx.com (mrgmx003) with ESMTPSA (Nemesis) id 0LZynd-1ash430GA1-00llYk for ; Mon, 22 Aug 2016 23:38:02 +0200 From: =?UTF-8?Q?Gerhard_Br=c3=a4unlich?= Subject: [gentoo-dev] [PATCH] eclass: ELT-patches: Support for cross library linking To: gentoo-dev@lists.gentoo.org Message-ID: <02214357-85d3-034d-6183-0feaf0910624@gmx.net> Date: Mon, 22 Aug 2016 23:40:19 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K0:O1oGAOFSAV8Bct1kPRTd1H0WE3mW2lG7y2ypHsVy/Ln1QUgdlUI sgbwEEyInlT7e32FmmlrZa1A/KqHRUXdN6zDmM/pFfnYtUmraxaDyM/Yh0B2qCKLlx9+rOD WW993ls006VxJ5Nf2nYxW/hnKp+iOtTccHLCHs/qI9fegg3U4WUhaP510xI9O79yK/+T77j +0wpzXNUUhRUBflauyJ4g== X-UI-Out-Filterresults: notjunk:1;V01:K0:ZLr1h5EUH0c=:b8ZVIDXMtEpjPEvs/LtPXI 9JGvUd+0MMF/bnAinRLACo3UUg+zTVUZKWFsTRCESlH1yMrhM8SNieaBkALFvLmrur7ucniUd XS/rmqDKXewusKBjjfMMt71mn7NeSuv2MjUEyQWvB09zttK1OERqFcxaVEfwO7jRWVRN+n78E 4PQUJ9OKskp4pDgjZLRpO//VMKwSLOlPtwn081XU1EJPkS8YLVdR2l+3vAOhvomVOSM0S20fE ntPhWFhVRwyFXjmzzjswh6UsbHDxtH1k8yWi/SqwGO6ldZT9S0ruttoN50gb6aO//S8u8Q2GU 13YQVVLVXwgjF1zxTaNQswvz2ut346nr80iscHxj1R0Bqulh1Va+DKmUVABPlHuJ2KLQX3xmH dmdtoTA5clyv0YmHlAJGXp2gWteE0Z5O1TJ4H3NtkE0kOg6zyrHgmMTwHWZZPEG1J+o/mFzue TInbhvItGrcj5cjey6taKp6QIvEj9/2aIRe5JWr+bI3HLuCe66dr+VgV3H7U7EKQyf0yNPWUz KDpGpL2Y3+S8b8Rq4vmLO3JyxchQ8WdpaDgDvML9eeUEyGzK+q2w3yW7CIScnqsVDP7HdptjL RmdYf4vfkzNp7Rlz/r9/v10JV9xZeoUApTcbNW42PHVchX0zvmCyKU5C3B+evzO9qQNGl8xjM GM9sYhO1vM60pVWnvrCD4FS6EOJ4PQ33cuN48LdcwHlQOjSf9YOxi0x+0fkVpaIfEExtgKykK smbMHSe7gkDYd0BZxqSrM5oAUTJR3XlLVoW8b87b43nTSbDIWovUjlOaTG7MiM8Z+tk/O1D2/ /Ao61Pg X-Archives-Salt: 0c492aef-c5bb-4eec-ad24-cb2fa451a01d X-Archives-Hash: 379232763678ca4b612649d44013f631 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 -