From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org)
	by finch.gentoo.org with esmtp (Exim 4.60)
	(envelope-from <gentoo-embedded+bounces-3542-garchives=archives.gentoo.org@lists.gentoo.org>)
	id 1OwCNd-0003j9-N3
	for garchives@archives.gentoo.org; Thu, 16 Sep 2010 11:11:53 +0000
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 4F939E0851
	for <garchives@archives.gentoo.org>; Thu, 16 Sep 2010 11:11:53 +0000 (UTC)
Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.187])
	by pigeon.gentoo.org (Postfix) with ESMTP id 9B344E081E
	for <gentoo-embedded@lists.gentoo.org>; Thu, 16 Sep 2010 11:05:40 +0000 (UTC)
Received: from [192.168.1.34] (p57B40DA7.dip0.t-ipconnect.de [87.180.13.167])
	by mrelayeu.kundenserver.de (node=mrbap2) with ESMTP (Nemesis)
	id 0M3dNR-1Oe7Qu2Ipl-00reWa; Thu, 16 Sep 2010 13:05:37 +0200
Message-ID: <4C91F98A.6030307@koblersystems.de>
Date: Thu, 16 Sep 2010 13:03:38 +0200
From: Jan Kobler <eng1@koblersystems.de>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.8) Gecko/20100322 Thunderbird/3.0.3
Precedence: bulk
List-Post: <mailto:gentoo-embedded@lists.gentoo.org>
List-Help: <mailto:gentoo-embedded+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-embedded+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-embedded+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-embedded.gentoo.org>
X-BeenThere: gentoo-embedded@lists.gentoo.org
Reply-to: gentoo-embedded@lists.gentoo.org
MIME-Version: 1.0
To: gentoo-embedded@lists.gentoo.org
Subject: [gentoo-embedded] Adjust paths when cross-compiling
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: 7bit
X-Provags-ID: V02:K0:6COAuiasiKb2wU6k6oBfEz3vvKGeKYAR0l/Hicec03J
 Vyj4niJEv+bLAAH7OD9UmJDM6Z+1AF15ZsyzoHSqE72tO9WnXq
 pc6H99yR3QKUF2E5g6a7krMCIKBMC3dikpVWhSHW06/LvD/2Bj
 31z1KoPns5wnq/addsRL4iIVdJnMM+oh7F1QlcWWdQ5+PNupX1
 JlBYlvk5IbxKxfAQdcMbQ==
X-Archives-Salt: ad9bc76a-1570-4ce1-93e6-07353805cf4e
X-Archives-Hash: eef8cee0e02ffbf321dfd71fb89e08a3

Hi,

when cross-compiling I have encountered some problems with path names:

ROOT=/usr/armv4tl-softfloat-linux-gnueabi
SYSROOT=/usr/armv4tl-softfloat-linux-gnueabi

I get error messages like:
/usr/lib/libgmp.so: could not read symbols: File in wrong format

or

/usr/libexec/gcc/armv4tl-softfloat-linux-gnueabi/ld: cannot find
/lib/libcrack.so.2

I have changed the paths manually

in the file $ROOT/usr/lib/libgmp.la

from
libdir='/usr/lib'
to
libdir='/usr/armv4tl-softfloat-linux-gnueabi/usr/lib'

in the file $ROOT/usr/lib/libcrack.so
from
GROUP ( /lib/libcrack.so.2 )
to
GROUP ( /usr/armv4tl-softfloat-linux-gnueabi/lib/libcrack.so.2 )


Are there any tools which can do this automatically.
I know that there is cross-fix-root or lafilefixer, but I am reluctant
to test it logged in as root.
Are there any docs about these tools beside --help on the command line.

These problems occurred when cross-compiling as described in
http://gentoo.mindzoo.de/index.cgi/wiki/cross-compiling-chroot
(currently Version 2)

Best regards

Jan