summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/boost
diff options
context:
space:
mode:
authorAnuj Mittal <anuj.mittal@intel.com>2019-11-14 12:08:47 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-11-21 23:08:19 +0000
commitf9f19f623269b5c250b2ac176123631151b9fcd9 (patch)
tree10d1bfa62eb4f955b3be50e08d96a231fc5e9be0 /meta/recipes-support/boost
parented3079a7351c5f7bef9018b47cdc0f6c313f1a1c (diff)
downloadpoky-f9f19f623269b5c250b2ac176123631151b9fcd9.tar.gz
boost: fix build for x32
Commit: d336110b94 boost: update to 1.67.0 dropped the patch that ensured boost doesn't over-ride the architecture flags set by us resulting in errors: | build/tmp/work/x86_64_x32-poky-linux-gnux32/boost/1.69.0-r0/recipe-sysroot/usr/include/bits/long-double.h:44:10: fatal error: bits/long-double-64.h: No such file or directory | #include <bits/long-double-64.h> | ^~~~~~~~~~~~~~~~~~~~~~~ | compilation terminated. Remove the relevant part from gcc.jam again to ensure we are passing them correctly again. Fixes [YOCTO #13598] (From OE-Core rev: aad28f42b1c8aa1335c040630ebff4a69be07e35) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support/boost')
-rw-r--r--meta/recipes-support/boost/boost/0001-dont-setup-compiler-flags-m32-m64.patch42
-rw-r--r--meta/recipes-support/boost/boost_1.71.0.bb1
2 files changed, 43 insertions, 0 deletions
diff --git a/meta/recipes-support/boost/boost/0001-dont-setup-compiler-flags-m32-m64.patch b/meta/recipes-support/boost/boost/0001-dont-setup-compiler-flags-m32-m64.patch
new file mode 100644
index 0000000000..78b19225d4
--- /dev/null
+++ b/meta/recipes-support/boost/boost/0001-dont-setup-compiler-flags-m32-m64.patch
@@ -0,0 +1,42 @@
1From 59402e3a61d14eb7ce8c2019ea1a87ad4bd28605 Mon Sep 17 00:00:00 2001
2From: Anuj Mittal <anuj.mittal@intel.com>
3Date: Thu, 14 Nov 2019 10:13:53 +0800
4Subject: [PATCH] dont setup compiler flags -m32/-m64
5
6We don't want these to be setup by boost as we pass our own flags.
7
8Upstream-Status: Inappropriate [OE-specific]
9
10Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
11---
12 tools/build/src/tools/gcc.jam | 14 --------------
13 1 file changed, 14 deletions(-)
14
15diff --git a/tools/build/src/tools/gcc.jam b/tools/build/src/tools/gcc.jam
16index c7e3cf3..24486e0 100644
17--- a/tools/build/src/tools/gcc.jam
18+++ b/tools/build/src/tools/gcc.jam
19@@ -430,20 +430,6 @@ local rule compile-link-flags ( * )
20 }
21
22 {
23- # Handle address-model
24- compile-link-flags <target-os>aix/<address-model>32 : -maix32 ;
25- compile-link-flags <target-os>aix/<address-model>64 : -maix64 ;
26-
27- compile-link-flags <target-os>hpux/<address-model>32 : -milp32 ;
28- compile-link-flags <target-os>hpux/<address-model>64 : -mlp64 ;
29-
30- local generic-os = [ set.difference $(all-os) : aix hpux ] ;
31- local arch = power sparc x86 ;
32- compile-link-flags <target-os>$(generic-os)/<architecture>$(arch)/<address-model>32 : -m32 ;
33- compile-link-flags <target-os>$(generic-os)/<architecture>$(arch)/<address-model>64 : -m64 ;
34-}
35-
36-{
37 # Handle threading
38 local rule threading-flags ( * )
39 {
40--
412.7.4
42
diff --git a/meta/recipes-support/boost/boost_1.71.0.bb b/meta/recipes-support/boost/boost_1.71.0.bb
index 324b46f168..5e9e0d87d7 100644
--- a/meta/recipes-support/boost/boost_1.71.0.bb
+++ b/meta/recipes-support/boost/boost_1.71.0.bb
@@ -6,4 +6,5 @@ SRC_URI += "file://arm-intrinsics.patch \
6 file://boost-math-disable-pch-for-gcc.patch \ 6 file://boost-math-disable-pch-for-gcc.patch \
7 file://0001-Apply-boost-1.62.0-no-forced-flags.patch.patch \ 7 file://0001-Apply-boost-1.62.0-no-forced-flags.patch.patch \
8 file://0001-Don-t-set-up-arch-instruction-set-flags-we-do-that-o.patch \ 8 file://0001-Don-t-set-up-arch-instruction-set-flags-we-do-that-o.patch \
9 file://0001-dont-setup-compiler-flags-m32-m64.patch \
9 " 10 "