summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/glibc/glibc/0025-locale-fix-hard-coded-reference-to-gcc-E.patch
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2017-04-14 18:23:20 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-07-11 15:57:08 +0100
commit1f4f343ff290019987f25d06ea0c00d495660919 (patch)
treef139bbba8e209a1094a0fc14d446a4e0aba9e9be /meta/recipes-core/glibc/glibc/0025-locale-fix-hard-coded-reference-to-gcc-E.patch
parent715b05e9e193200c2e41fe4881b2ab1fdb639cc2 (diff)
downloadpoky-1f4f343ff290019987f25d06ea0c00d495660919.tar.gz
glibc: Upgrade to 2.25.90
Eventually it will be released as 2.26 final (From OE-Core rev: 5a58883258206893d15990953c8691b05473eecb) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/glibc/glibc/0025-locale-fix-hard-coded-reference-to-gcc-E.patch')
-rw-r--r--meta/recipes-core/glibc/glibc/0025-locale-fix-hard-coded-reference-to-gcc-E.patch38
1 files changed, 38 insertions, 0 deletions
diff --git a/meta/recipes-core/glibc/glibc/0025-locale-fix-hard-coded-reference-to-gcc-E.patch b/meta/recipes-core/glibc/glibc/0025-locale-fix-hard-coded-reference-to-gcc-E.patch
new file mode 100644
index 0000000000..f653077405
--- /dev/null
+++ b/meta/recipes-core/glibc/glibc/0025-locale-fix-hard-coded-reference-to-gcc-E.patch
@@ -0,0 +1,38 @@
1From f3a670496c8fe6d4acf045f5b167a19cf41b044e Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Rosen?= <jeremy.rosen@smile.fr>
3Date: Mon, 22 Aug 2016 16:09:25 +0200
4Subject: [PATCH 25/25] locale: fix hard-coded reference to gcc -E
5
6When new version of compilers are published, they may not be compatible with
7older versions of software. This is particularly common when software is built
8with -Werror.
9
10Autotools provides a way for a user to specify the name of his compiler using a
11set of variables ($CC $CXX $CPP etc.). Those variables are used correctly when
12compiling glibc but the script used to generate transliterations in the locale/
13subdirectory directly calls the gcc binary to get the output of the
14preprocessor instead of using the $CPP variable provided by the build
15environment.
16
17This patch replaces the hard-coded reference to the gcc binary with the proper
18environment variable, thus allowing a user to override it.
19
20Upstream-Status : Submitted [https://sourceware.org/ml/libc-alpha/2016-08/msg00746.html]
21---
22 locale/gen-translit.pl | 2 +-
23 1 file changed, 1 insertion(+), 1 deletion(-)
24
25diff --git a/locale/gen-translit.pl b/locale/gen-translit.pl
26index 30d3f2f195..e97653017c 100644
27--- a/locale/gen-translit.pl
28+++ b/locale/gen-translit.pl
29@@ -1,5 +1,5 @@
30 #!/usr/bin/perl -w
31-open F, "cat C-translit.h.in | gcc -E - |" || die "Cannot preprocess input file";
32+open F, 'cat C-translit.h.in | ${CPP:-gcc -E} - |' || die "Cannot preprocess input file";
33
34
35 sub cstrlen {
36--
372.13.2
38