summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/gmp/gmp_4.2.1.bb
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2012-08-22 19:30:22 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-08-23 09:22:42 +0100
commit8d333950263e0f02dbb4164cab8e88233d6d7732 (patch)
tree5ff17cc0e9fb7849fba6c3c135c9f364050b01c1 /meta/recipes-support/gmp/gmp_4.2.1.bb
parent19ff55a53b436d463f9577adaed15be77708f0d2 (diff)
downloadpoky-8d333950263e0f02dbb4164cab8e88233d6d7732.tar.gz
gmp-4.2.1: Set CC_FOR_BUILD to ensure the host system compiler is used, not the target one
This addresses errors like: | NOTE: make -j 16 | i586-poky-linux-gcc -m32 -march=i586 --sysroot=/srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-non-gpl3/build/build/tmp/sysroots/qemux86 `test -f 'gen-fac_ui.c' || echo './'`gen-fac_ui.c -o gen-fac_ui | i586-poky-linux-gcc -m32 -march=i586 --sysroot=/srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-non-gpl3/build/build/tmp/sysroots/qemux86 `test -f 'gen-fib.c' || echo './'`gen-fib.c -o gen-fib | i586-poky-linux-gcc -m32 -march=i586 --sysroot=/srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-non-gpl3/build/build/tmp/sysroots/qemux86 `test -f 'gen-bases.c' || echo './'`gen-bases.c -o gen-bases -lm | i586-poky-linux-gcc -m32 -march=i586 --sysroot=/srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-non-gpl3/build/build/tmp/sysroots/qemux86 `test -f 'gen-psqr.c' || echo './'`gen-psqr.c -o gen-psqr -lm | ./gen-fac_ui 32 0 >mpz/fac_ui.h || (rm -f mpz/fac_ui.h; exit 1) | ./gen-bases header 32 0 >mp_bases.h || (rm -f mp_bases.h; exit 1) | ./gen-bases table 32 0 >mpn/mp_bases.c || (rm -f mpn/mp_bases.c; exit 1) | ./gen-fib header 32 0 >fib_table.h || (rm -f fib_table.h; exit 1) | ./gen-bases: error while loading shared libraries: libgcc_s.so.1: cannot open shared object file: No such file or directory | ./gen-bases: error while loading shared libraries: libgcc_s.so.1: cannot open shared object file: No such file or directory | ./gen-fib table 32 0 >mpn/fib_table.c || (rm -f mpn/fib_table.c; exit 1) | make: *** [mp_bases.h] Error 1 and matches the fix for the other gmp version. [YOCTO #2992] (From OE-Core rev: 24d31cd30080401271936422e6bd77727a16e0a6) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support/gmp/gmp_4.2.1.bb')
-rw-r--r--meta/recipes-support/gmp/gmp_4.2.1.bb2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/recipes-support/gmp/gmp_4.2.1.bb b/meta/recipes-support/gmp/gmp_4.2.1.bb
index 49ee59b7dc..1f86a65e2a 100644
--- a/meta/recipes-support/gmp/gmp_4.2.1.bb
+++ b/meta/recipes-support/gmp/gmp_4.2.1.bb
@@ -16,4 +16,6 @@ SRC_URI = "${GNU_MIRROR}/gmp/${BP}.tar.bz2 \
16SRC_URI[md5sum] = "091c56e0e1cca6b09b17b69d47ef18e3" 16SRC_URI[md5sum] = "091c56e0e1cca6b09b17b69d47ef18e3"
17SRC_URI[sha256sum] = "d07ffcb37eecec35c5ec72516d10b35fdf6e6fef1fcf1dcd37e30b8cbf8bf941" 17SRC_URI[sha256sum] = "d07ffcb37eecec35c5ec72516d10b35fdf6e6fef1fcf1dcd37e30b8cbf8bf941"
18 18
19export CC_FOR_BUILD = "${BUILD_CC}"
20
19inherit autotools 21inherit autotools