diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-core/systemd/systemd/0001-Remove-fstack-protector-flags-to-workaround-musl-bui.patch | 33 | ||||
-rw-r--r-- | meta/recipes-core/systemd/systemd_237.bb | 4 |
2 files changed, 37 insertions, 0 deletions
diff --git a/meta/recipes-core/systemd/systemd/0001-Remove-fstack-protector-flags-to-workaround-musl-bui.patch b/meta/recipes-core/systemd/systemd/0001-Remove-fstack-protector-flags-to-workaround-musl-bui.patch new file mode 100644 index 0000000000..e913e3f7b5 --- /dev/null +++ b/meta/recipes-core/systemd/systemd/0001-Remove-fstack-protector-flags-to-workaround-musl-bui.patch | |||
@@ -0,0 +1,33 @@ | |||
1 | From e361f6b4aefae57efff7e457df8db4d1067bec23 Mon Sep 17 00:00:00 2001 | ||
2 | From: Chen Qi <Qi.Chen@windriver.com> | ||
3 | Date: Wed, 28 Feb 2018 21:50:23 -0800 | ||
4 | Subject: [PATCH] Remove fstack-protector flags to workaround musl build | ||
5 | |||
6 | Remove fstack-protector and fstack-protector-strong flags to fix | ||
7 | the following build failure for qemux86 and qemuppc with musl. | ||
8 | |||
9 | undefined reference to `__stack_chk_fail_local' | ||
10 | |||
11 | Upstream-Status: Inappropriate [OE Specific] | ||
12 | |||
13 | Signed-off-by: Chen Qi <Qi.Chen@windriver.com> | ||
14 | --- | ||
15 | meson.build | 2 -- | ||
16 | 1 file changed, 2 deletions(-) | ||
17 | |||
18 | diff --git a/meson.build b/meson.build | ||
19 | index 7610ab12b..591b9cbab 100644 | ||
20 | --- a/meson.build | ||
21 | +++ b/meson.build | ||
22 | @@ -329,8 +329,6 @@ foreach arg : ['-Wextra', | ||
23 | '-fdiagnostics-show-option', | ||
24 | '-fno-strict-aliasing', | ||
25 | '-fvisibility=hidden', | ||
26 | - '-fstack-protector', | ||
27 | - '-fstack-protector-strong', | ||
28 | '--param=ssp-buffer-size=4', | ||
29 | ] | ||
30 | if cc.has_argument(arg) | ||
31 | -- | ||
32 | 2.13.0 | ||
33 | |||
diff --git a/meta/recipes-core/systemd/systemd_237.bb b/meta/recipes-core/systemd/systemd_237.bb index 8ef1026086..ecf8e74940 100644 --- a/meta/recipes-core/systemd/systemd_237.bb +++ b/meta/recipes-core/systemd/systemd_237.bb | |||
@@ -52,6 +52,10 @@ SRC_URI += "file://touchscreen.rules \ | |||
52 | " | 52 | " |
53 | SRC_URI_append_qemuall = " file://0001-core-device.c-Change-the-default-device-timeout-to-2.patch" | 53 | SRC_URI_append_qemuall = " file://0001-core-device.c-Change-the-default-device-timeout-to-2.patch" |
54 | 54 | ||
55 | # Workaround undefined reference to `__stack_chk_fail_local' on qemux86 and qemuppc for musl | ||
56 | SRC_URI_append_libc-musl_qemux86 = " file://0001-Remove-fstack-protector-flags-to-workaround-musl-bui.patch" | ||
57 | SRC_URI_append_libc-musl_qemuppc = " file://0001-Remove-fstack-protector-flags-to-workaround-musl-bui.patch" | ||
58 | |||
55 | PAM_PLUGINS = " \ | 59 | PAM_PLUGINS = " \ |
56 | pam-plugin-unix \ | 60 | pam-plugin-unix \ |
57 | pam-plugin-loginuid \ | 61 | pam-plugin-loginuid \ |