Gentoo Archives: gentoo-embedded

From: Mike Frysinger <vapier@g.o>
To: Joakim Tjernlund <joakim.tjernlund@×××××××××.se>
Cc: gentoo-embedded@l.g.o
Subject: Re: [gentoo-embedded] crossdev builds libiberty.a with host arch
Date: Fri, 11 Nov 2011 16:01:51
Message-Id: 201111111101.29292.vapier@gentoo.org
In Reply to: Re: [gentoo-embedded] crossdev builds libiberty.a with host arch by Joakim Tjernlund
1 On Friday 11 November 2011 10:47:02 Joakim Tjernlund wrote:
2 > Mike Frysinger <vapier@g.o> wrote on 2011/11/11 15:46:44:
3 > > On Friday 11 November 2011 03:26:22 Joakim Tjernlund wrote:
4 > > > I installed binutils
5 > > > and now I got a the correct libbfd.so and libiberty.a under
6 > > >
7 > > > /usr/powerpc-softfloat-linux-gnu/usr/lib/binutils/powerpc-softfloat-li
8 > > > nux-
9 > > >
10 > > > gnu/2.16.1/ There is no symlink under
11 > > >
12 > > > /usr/powerpc-softfloat-linux-gnu/lib/
13 > > >
14 > > > though which forces me to pass -L and -I options too gcc in order to
15 > > > build oprofile. Would be nice if the symlinks were created to make the
16 > > > x-compile env. mimic the normal host env.
17 > >
18 > > try running:
19 > > ROOT=/usr/powerpc-softfloat-linux-gnu binutils-config 1
20 >
21 > :) that got me
22 > /usr/powerpc-softfloat-linux-gnu/usr/i686-pc-linux-gnu/powerpc-softfloat-l
23 > inux-gnu/lib/libiberty.a ->
24 > /usr/lib/binutils/powerpc-softfloat-linux-gnu/2.16.1/libiberty.a
25 >
26 > but this is a host arch libiberty.a so can't use it for x-compile :(
27
28 hmm, yeah, that's because binutils-config doesn't use relative symlinks. i
29 wonder if relative would be fine since it isn't crossing the /usr boundary ...
30
31
32 > No sign of any new libiberty.h header files though.
33 > Did I miss something?
34
35 you might also have to manually set CHOST otherwise binutils-config will think
36 it's setting up a cross-compiler.
37
38 CHOST=powerpc-softfloat-linux-gnu \
39 ROOT=/usr/powerpc-softfloat-linux-gnu \
40 binutils-config 1
41 -mike

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-embedded] crossdev builds libiberty.a with host arch Joakim Tjernlund <joakim.tjernlund@×××××××××.se>