diff options
Diffstat (limited to 'meta/recipes-core/glibc/glibc/0027-locale-fix-hard-coded-reference-to-gcc-E.patch')
-rw-r--r-- | meta/recipes-core/glibc/glibc/0027-locale-fix-hard-coded-reference-to-gcc-E.patch | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/meta/recipes-core/glibc/glibc/0027-locale-fix-hard-coded-reference-to-gcc-E.patch b/meta/recipes-core/glibc/glibc/0027-locale-fix-hard-coded-reference-to-gcc-E.patch new file mode 100644 index 0000000000..71c0bdcaea --- /dev/null +++ b/meta/recipes-core/glibc/glibc/0027-locale-fix-hard-coded-reference-to-gcc-E.patch | |||
@@ -0,0 +1,38 @@ | |||
1 | From a2fc86cb8d0366171f100ebd033aeb9609fa40de Mon Sep 17 00:00:00 2001 | ||
2 | From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Rosen?= <jeremy.rosen@smile.fr> | ||
3 | Date: Mon, 22 Aug 2016 16:09:25 +0200 | ||
4 | Subject: [PATCH 27/27] locale: fix hard-coded reference to gcc -E | ||
5 | |||
6 | When new version of compilers are published, they may not be compatible with | ||
7 | older versions of software. This is particularly common when software is built | ||
8 | with -Werror. | ||
9 | |||
10 | Autotools provides a way for a user to specify the name of his compiler using a | ||
11 | set of variables ($CC $CXX $CPP etc.). Those variables are used correctly when | ||
12 | compiling glibc but the script used to generate transliterations in the locale/ | ||
13 | subdirectory directly calls the gcc binary to get the output of the | ||
14 | preprocessor instead of using the $CPP variable provided by the build | ||
15 | environment. | ||
16 | |||
17 | This patch replaces the hard-coded reference to the gcc binary with the proper | ||
18 | environment variable, thus allowing a user to override it. | ||
19 | |||
20 | Upstream-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 | |||
25 | diff --git a/locale/gen-translit.pl b/locale/gen-translit.pl | ||
26 | index 30d3f2f..e976530 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 | -- | ||
37 | 2.10.2 | ||
38 | |||