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