diff options
Diffstat (limited to 'recipes-devtools/distcc')
-rw-r--r-- | recipes-devtools/distcc/distcc/distcc-3.3.3-clang-12.patch | 19 | ||||
-rw-r--r-- | recipes-devtools/distcc/distcc_3.3.3%.bbappend | 4 |
2 files changed, 23 insertions, 0 deletions
diff --git a/recipes-devtools/distcc/distcc/distcc-3.3.3-clang-12.patch b/recipes-devtools/distcc/distcc/distcc-3.3.3-clang-12.patch new file mode 100644 index 0000000..61a26a7 --- /dev/null +++ b/recipes-devtools/distcc/distcc/distcc-3.3.3-clang-12.patch | |||
@@ -0,0 +1,19 @@ | |||
1 | # SPDX-FileCopyrightText: Huawei Inc. | ||
2 | # SPDX-License-Identifier: Apache-2.0 | ||
3 | |||
4 | Fix build with modern compilers, such as clang 12 and gcc 11 | ||
5 | |||
6 | Signed-off-by: Bernhard Rosenkraenzer <bernhard.rosenkraenzer.ext@huawei.com> | ||
7 | |||
8 | diff -up git/src/stats.h.omv~ git/src/stats.h | ||
9 | --- git/src/stats.h.omv~ 2021-03-11 18:38:55.022070855 +0100 | ||
10 | +++ git/src/stats.h 2021-03-11 18:38:59.498751697 +0100 | ||
11 | @@ -33,7 +33,7 @@ enum stats_e { STATS_TCP_ACCEPT, STATS_R | ||
12 | STATS_COMPILE_OK, STATS_COMPILE_ERROR, STATS_COMPILE_TIMEOUT, | ||
13 | STATS_CLI_DISCONN, STATS_OTHER, STATS_ENUM_MAX }; | ||
14 | |||
15 | -const char *stats_text[20]; | ||
16 | +extern const char *stats_text[20]; | ||
17 | |||
18 | int dcc_stats_init(void); | ||
19 | void dcc_stats_init_kid(void); | ||
diff --git a/recipes-devtools/distcc/distcc_3.3.3%.bbappend b/recipes-devtools/distcc/distcc_3.3.3%.bbappend new file mode 100644 index 0000000..d2bf964 --- /dev/null +++ b/recipes-devtools/distcc/distcc_3.3.3%.bbappend | |||
@@ -0,0 +1,4 @@ | |||
1 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" | ||
2 | SRC_URI_append = "\ | ||
3 | file://distcc-3.3.3-clang-12.patch \ | ||
4 | " | ||