1 |
-----BEGIN PGP SIGNED MESSAGE----- |
2 |
Hash: SHA1 |
3 |
|
4 |
|
5 |
|
6 |
|
7 |
> I don't know which thread you are referring to, but maybe it was one of |
8 |
> mine. |
9 |
|
10 |
Sorry. This question from Lutz Schönemann was refered (at bottom). i |
11 |
wanted to point out, that setting BUILD_* like in |
12 |
|
13 |
BUILD_CC="i686-pc-linux-gnu-gcc" |
14 |
BUILD_CXX="i686-pc-linux-gnu-g++" |
15 |
BUILD_CFLAGS="-O2 -march=athlon-xp -pipe" |
16 |
BUILD_CXXFLAGS=${BUILD_CFLAGS} |
17 |
|
18 |
to build-machine specific flags solved the problem with the |
19 |
machine-specifc parameters (march) for me. |
20 |
|
21 |
portage seems not to care for build/target specific CFLAGS, but most |
22 |
configures do, so exporting this variables in the shell enables some |
23 |
packages to build (especiallly those, that build build-machine binaries, |
24 |
like the locals-compiler in glibc) |
25 |
|
26 |
harald |
27 |
|
28 |
>> - Using crossdev: |
29 |
>> The crossdev script worked fine and installed the whole toolchain |
30 |
>> (stage4: binutils, gcc, linux-headers, etc.). The trouble is that |
31 |
>> when I want to merge a packege with this compiler (e.g.: |
32 |
>> CFLAGS="-arch=i386" ROOT=/tmp/cross/ CHOST=i386-unknown-linux-gnu |
33 |
>> emerge sys-boot/syslinux) it ends up with the message that the |
34 |
>> compiler is unable to build executables. |
35 |
|
36 |
>Just in case that wasn't a typo in transcription - you need |
37 |
>CFLAGS="-march=i386" (with an 'm'). You should look at the config.log |
38 |
>etc to find out exactly why the compiler couldn't build executables. |
39 |
|
40 |
>BTW again just in case - if your host is an x86 system, |
41 |
>you don't need a |
42 |
>cross-compiler as your host compiler can build for all x86 variants - |
43 |
>it's enough to get the CFLAGS right; e.g. |
44 |
|
45 |
>CFLAGS="-march=i386" ROOT=/tmp/cross emerge <pkg> |
46 |
|
47 |
-----BEGIN PGP SIGNATURE----- |
48 |
Version: GnuPG v1.4.2.1 (GNU/Linux) |
49 |
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org |
50 |
|
51 |
iD8DBQFESNDIJgyxs71kcx4RAgPkAJ433wMAObmRQo5qarx1kjzyz+sbFgCeLE2v |
52 |
XECMbsoIVkxeomlLn7wsJjU= |
53 |
=kBVJ |
54 |
-----END PGP SIGNATURE----- |
55 |
-- |
56 |
gentoo-embedded@g.o mailing list |