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