summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/gcc/gcc-6.4/0054_all_nopie-all-flags.patch
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2017-10-14 08:48:57 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-03-14 07:55:02 -0700
commit02b66069c561be3d5567712e5fc43b6340109ed1 (patch)
tree7804665cba85ae6a4d25a8110455a85e9d048031 /meta/recipes-devtools/gcc/gcc-6.4/0054_all_nopie-all-flags.patch
parentfbf0a745375c293b92cd2584364d7a3c3731fe7e (diff)
downloadpoky-02b66069c561be3d5567712e5fc43b6340109ed1.tar.gz
gcc6: Upgrade to 6.4
Cherry-picked from oe-core master 7874fa86cb583fe6a178b95ead09430486197197 (From OE-Core rev: 4a9eee06a6d15a23f58bc981c83138964702b735) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-6.4/0054_all_nopie-all-flags.patch')
-rw-r--r--meta/recipes-devtools/gcc/gcc-6.4/0054_all_nopie-all-flags.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-6.4/0054_all_nopie-all-flags.patch b/meta/recipes-devtools/gcc/gcc-6.4/0054_all_nopie-all-flags.patch
new file mode 100644
index 0000000000..73ab9502dc
--- /dev/null
+++ b/meta/recipes-devtools/gcc/gcc-6.4/0054_all_nopie-all-flags.patch
@@ -0,0 +1,22 @@
1Need to pass NO_PIE_CFLAGS to ALL_* so gcc doesn't fail when
2we compile it with older gcc and pie.
3
4Upstream-Status: Inappropriate [configuration]
5
6Maintained by: Gentoo Toolchain Project <toolchain@gentoo.org>
7Signed-off-by: Stephen Arnold <stephen.arnold42@gmail.com>
8
9--- a/gcc/Makefile.in 2015-06-25 19:18:12.000000000 +0200
10+++ b/gcc/Makefile.in 2016-04-22 00:12:54.029178860 +0200
11@@ -991,10 +991,10 @@ ALL_CXXFLAGS = $(T_CFLAGS) $(CFLAGS-$@)
12 ALL_CPPFLAGS = $(INCLUDES) $(CPPFLAGS)
13
14 # This is the variable to use when using $(COMPILER).
15-ALL_COMPILERFLAGS = $(ALL_CXXFLAGS)
16+ALL_COMPILERFLAGS = $(NO_PIE_CFLAGS) $(ALL_CXXFLAGS)
17
18 # This is the variable to use when using $(LINKER).
19-ALL_LINKERFLAGS = $(ALL_CXXFLAGS)
20+ALL_LINKERFLAGS = $(NO_PIE_CFLAGS) $(ALL_CXXFLAGS)
21
22 # Build and host support libraries.