summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/boost/boost/0003-Don-t-set-up-arch-instruction-set-flags-we-do-that-o.patch
diff options
context:
space:
mode:
authorChristopher Larson <chris_larson@mentor.com>2016-12-13 20:09:58 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-01-09 13:39:12 +0000
commit550052f9d8a3e2e291d4b22548bb860aa3ff30b3 (patch)
treeabf6ed08d2603fe3c83e1d3c7b4bb2f246d785ac /meta/recipes-support/boost/boost/0003-Don-t-set-up-arch-instruction-set-flags-we-do-that-o.patch
parent0bfe26381640c2fc1b2e5ed6db23a04a0608f538 (diff)
downloadpoky-550052f9d8a3e2e291d4b22548bb860aa3ff30b3.tar.gz
boost: drop flags bits, fix for x32
boost was adding -march/-mcpu itself, and adding -m32/-m64 itself as well. Patch that behavior out, apply another similar patch from elsewhere, and adjust BJAM_OPTS to fix the x32 build. (From OE-Core rev: 2dc30ad281b625e0c4f2437879bce58245aa45b1) Signed-off-by: Christopher Larson <chris_larson@mentor.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support/boost/boost/0003-Don-t-set-up-arch-instruction-set-flags-we-do-that-o.patch')
-rw-r--r--meta/recipes-support/boost/boost/0003-Don-t-set-up-arch-instruction-set-flags-we-do-that-o.patch143
1 files changed, 143 insertions, 0 deletions
diff --git a/meta/recipes-support/boost/boost/0003-Don-t-set-up-arch-instruction-set-flags-we-do-that-o.patch b/meta/recipes-support/boost/boost/0003-Don-t-set-up-arch-instruction-set-flags-we-do-that-o.patch
new file mode 100644
index 0000000000..6bb25f885c
--- /dev/null
+++ b/meta/recipes-support/boost/boost/0003-Don-t-set-up-arch-instruction-set-flags-we-do-that-o.patch
@@ -0,0 +1,143 @@
1From 7c49525812567f1219706c4ed330b3bd2cc8e94a Mon Sep 17 00:00:00 2001
2From: Christopher Larson <chris_larson@mentor.com>
3Date: Tue, 13 Dec 2016 10:29:32 -0700
4Subject: [PATCH 3/3] Don't set up arch/instruction-set flags, we do that
5 ourselves
6
7Upstream-Status: Inappropriate
8Signed-off-by: Christopher Larson <chris_larson@mentor.com>
9---
10 tools/build/src/tools/gcc.jam | 121 ------------------------------------------
11 1 file changed, 121 deletions(-)
12
13diff --git a/tools/build/src/tools/gcc.jam b/tools/build/src/tools/gcc.jam
14index 942f141..d062c20 100644
15--- a/tools/build/src/tools/gcc.jam
16+++ b/tools/build/src/tools/gcc.jam
17@@ -1068,124 +1068,3 @@ local rule cpu-flags ( toolset variable : architecture : instruction-set + :
18 <architecture>$(architecture)/<instruction-set>$(instruction-set)
19 : $(values) ;
20 }
21-
22-
23-# Set architecture/instruction-set options.
24-#
25-# x86 and compatible
26-# The 'native' option appeared in gcc 4.2 so we cannot safely use it as default.
27-# Use i686 instead for 32-bit.
28-toolset.flags gcc OPTIONS <architecture>x86/<address-model>32/<instruction-set> : -march=i686 ;
29-cpu-flags gcc OPTIONS : x86 : native : -march=native ;
30-cpu-flags gcc OPTIONS : x86 : i486 : -march=i486 ;
31-cpu-flags gcc OPTIONS : x86 : i586 : -march=i586 ;
32-cpu-flags gcc OPTIONS : x86 : i686 : -march=i686 ;
33-cpu-flags gcc OPTIONS : x86 : pentium : -march=pentium ;
34-cpu-flags gcc OPTIONS : x86 : pentium-mmx : -march=pentium-mmx ;
35-cpu-flags gcc OPTIONS : x86 : pentiumpro : -march=pentiumpro ;
36-cpu-flags gcc OPTIONS : x86 : pentium2 : -march=pentium2 ;
37-cpu-flags gcc OPTIONS : x86 : pentium3 : -march=pentium3 ;
38-cpu-flags gcc OPTIONS : x86 : pentium3m : -march=pentium3m ;
39-cpu-flags gcc OPTIONS : x86 : pentium-m : -march=pentium-m ;
40-cpu-flags gcc OPTIONS : x86 : pentium4 : -march=pentium4 ;
41-cpu-flags gcc OPTIONS : x86 : pentium4m : -march=pentium4m ;
42-cpu-flags gcc OPTIONS : x86 : prescott : -march=prescott ;
43-cpu-flags gcc OPTIONS : x86 : nocona : -march=nocona ;
44-cpu-flags gcc OPTIONS : x86 : core2 : -march=core2 ;
45-cpu-flags gcc OPTIONS : x86 : conroe : -march=core2 ;
46-cpu-flags gcc OPTIONS : x86 : conroe-xe : -march=core2 ;
47-cpu-flags gcc OPTIONS : x86 : conroe-l : -march=core2 ;
48-cpu-flags gcc OPTIONS : x86 : allendale : -march=core2 ;
49-cpu-flags gcc OPTIONS : x86 : wolfdale : -march=core2 -msse4.1 ;
50-cpu-flags gcc OPTIONS : x86 : merom : -march=core2 ;
51-cpu-flags gcc OPTIONS : x86 : merom-xe : -march=core2 ;
52-cpu-flags gcc OPTIONS : x86 : kentsfield : -march=core2 ;
53-cpu-flags gcc OPTIONS : x86 : kentsfield-xe : -march=core2 ;
54-cpu-flags gcc OPTIONS : x86 : yorksfield : -march=core2 ;
55-cpu-flags gcc OPTIONS : x86 : penryn : -march=core2 ;
56-cpu-flags gcc OPTIONS : x86 : corei7 : -march=corei7 ;
57-cpu-flags gcc OPTIONS : x86 : nehalem : -march=corei7 ;
58-cpu-flags gcc OPTIONS : x86 : corei7-avx : -march=corei7-avx ;
59-cpu-flags gcc OPTIONS : x86 : sandy-bridge : -march=corei7-avx ;
60-cpu-flags gcc OPTIONS : x86 : core-avx-i : -march=core-avx-i ;
61-cpu-flags gcc OPTIONS : x86 : ivy-bridge : -march=core-avx-i ;
62-cpu-flags gcc OPTIONS : x86 : haswell : -march=core-avx-i -mavx2 -mfma -mbmi -mbmi2 -mlzcnt ;
63-cpu-flags gcc OPTIONS : x86 : k6 : -march=k6 ;
64-cpu-flags gcc OPTIONS : x86 : k6-2 : -march=k6-2 ;
65-cpu-flags gcc OPTIONS : x86 : k6-3 : -march=k6-3 ;
66-cpu-flags gcc OPTIONS : x86 : athlon : -march=athlon ;
67-cpu-flags gcc OPTIONS : x86 : athlon-tbird : -march=athlon-tbird ;
68-cpu-flags gcc OPTIONS : x86 : athlon-4 : -march=athlon-4 ;
69-cpu-flags gcc OPTIONS : x86 : athlon-xp : -march=athlon-xp ;
70-cpu-flags gcc OPTIONS : x86 : athlon-mp : -march=athlon-mp ;
71-##
72-cpu-flags gcc OPTIONS : x86 : k8 : -march=k8 ;
73-cpu-flags gcc OPTIONS : x86 : opteron : -march=opteron ;
74-cpu-flags gcc OPTIONS : x86 : athlon64 : -march=athlon64 ;
75-cpu-flags gcc OPTIONS : x86 : athlon-fx : -march=athlon-fx ;
76-cpu-flags gcc OPTIONS : x86 : k8-sse3 : -march=k8-sse3 ;
77-cpu-flags gcc OPTIONS : x86 : opteron-sse3 : -march=opteron-sse3 ;
78-cpu-flags gcc OPTIONS : x86 : athlon64-sse3 : -march=athlon64-sse3 ;
79-cpu-flags gcc OPTIONS : x86 : amdfam10 : -march=amdfam10 ;
80-cpu-flags gcc OPTIONS : x86 : barcelona : -march=barcelona ;
81-cpu-flags gcc OPTIONS : x86 : bdver1 : -march=bdver1 ;
82-cpu-flags gcc OPTIONS : x86 : bdver2 : -march=bdver2 ;
83-cpu-flags gcc OPTIONS : x86 : bdver3 : -march=bdver3 ;
84-cpu-flags gcc OPTIONS : x86 : btver1 : -march=btver1 ;
85-cpu-flags gcc OPTIONS : x86 : btver2 : -march=btver2 ;
86-cpu-flags gcc OPTIONS : x86 : winchip-c6 : -march=winchip-c6 ;
87-cpu-flags gcc OPTIONS : x86 : winchip2 : -march=winchip2 ;
88-cpu-flags gcc OPTIONS : x86 : c3 : -march=c3 ;
89-cpu-flags gcc OPTIONS : x86 : c3-2 : -march=c3-2 ;
90-##
91-cpu-flags gcc OPTIONS : x86 : atom : -march=atom ;
92-# Sparc
93-cpu-flags gcc OPTIONS : sparc : v7 : -mcpu=v7 : default ;
94-cpu-flags gcc OPTIONS : sparc : cypress : -mcpu=cypress ;
95-cpu-flags gcc OPTIONS : sparc : v8 : -mcpu=v8 ;
96-cpu-flags gcc OPTIONS : sparc : supersparc : -mcpu=supersparc ;
97-cpu-flags gcc OPTIONS : sparc : sparclite : -mcpu=sparclite ;
98-cpu-flags gcc OPTIONS : sparc : hypersparc : -mcpu=hypersparc ;
99-cpu-flags gcc OPTIONS : sparc : sparclite86x : -mcpu=sparclite86x ;
100-cpu-flags gcc OPTIONS : sparc : f930 : -mcpu=f930 ;
101-cpu-flags gcc OPTIONS : sparc : f934 : -mcpu=f934 ;
102-cpu-flags gcc OPTIONS : sparc : sparclet : -mcpu=sparclet ;
103-cpu-flags gcc OPTIONS : sparc : tsc701 : -mcpu=tsc701 ;
104-cpu-flags gcc OPTIONS : sparc : v9 : -mcpu=v9 ;
105-cpu-flags gcc OPTIONS : sparc : ultrasparc : -mcpu=ultrasparc ;
106-cpu-flags gcc OPTIONS : sparc : ultrasparc3 : -mcpu=ultrasparc3 ;
107-# RS/6000 & PowerPC
108-cpu-flags gcc OPTIONS : power : 403 : -mcpu=403 ;
109-cpu-flags gcc OPTIONS : power : 505 : -mcpu=505 ;
110-cpu-flags gcc OPTIONS : power : 601 : -mcpu=601 ;
111-cpu-flags gcc OPTIONS : power : 602 : -mcpu=602 ;
112-cpu-flags gcc OPTIONS : power : 603 : -mcpu=603 ;
113-cpu-flags gcc OPTIONS : power : 603e : -mcpu=603e ;
114-cpu-flags gcc OPTIONS : power : 604 : -mcpu=604 ;
115-cpu-flags gcc OPTIONS : power : 604e : -mcpu=604e ;
116-cpu-flags gcc OPTIONS : power : 620 : -mcpu=620 ;
117-cpu-flags gcc OPTIONS : power : 630 : -mcpu=630 ;
118-cpu-flags gcc OPTIONS : power : 740 : -mcpu=740 ;
119-cpu-flags gcc OPTIONS : power : 7400 : -mcpu=7400 ;
120-cpu-flags gcc OPTIONS : power : 7450 : -mcpu=7450 ;
121-cpu-flags gcc OPTIONS : power : 750 : -mcpu=750 ;
122-cpu-flags gcc OPTIONS : power : 801 : -mcpu=801 ;
123-cpu-flags gcc OPTIONS : power : 821 : -mcpu=821 ;
124-cpu-flags gcc OPTIONS : power : 823 : -mcpu=823 ;
125-cpu-flags gcc OPTIONS : power : 860 : -mcpu=860 ;
126-cpu-flags gcc OPTIONS : power : 970 : -mcpu=970 ;
127-cpu-flags gcc OPTIONS : power : 8540 : -mcpu=8540 ;
128-cpu-flags gcc OPTIONS : power : power : -mcpu=power ;
129-cpu-flags gcc OPTIONS : power : power2 : -mcpu=power2 ;
130-cpu-flags gcc OPTIONS : power : power3 : -mcpu=power3 ;
131-cpu-flags gcc OPTIONS : power : power4 : -mcpu=power4 ;
132-cpu-flags gcc OPTIONS : power : power5 : -mcpu=power5 ;
133-cpu-flags gcc OPTIONS : power : powerpc : -mcpu=powerpc ;
134-cpu-flags gcc OPTIONS : power : powerpc64 : -mcpu=powerpc64 ;
135-cpu-flags gcc OPTIONS : power : rios : -mcpu=rios ;
136-cpu-flags gcc OPTIONS : power : rios1 : -mcpu=rios1 ;
137-cpu-flags gcc OPTIONS : power : rios2 : -mcpu=rios2 ;
138-cpu-flags gcc OPTIONS : power : rsc : -mcpu=rsc ;
139-cpu-flags gcc OPTIONS : power : rs64a : -mcpu=rs64 ;
140-# AIX variant of RS/6000 & PowerPC
141-toolset.flags gcc AROPTIONS <address-model>64/<target-os>aix : "-X64" ;
142--
1432.8.0