diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2018-03-01 00:01:19 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-03-20 09:30:19 +0000 |
commit | 4871d3c2b6dd6c07a2adcfbc9ecfb22e4afa2d0d (patch) | |
tree | d2a74e635f25491efa50260e205e242547c79cec /meta/recipes-core/systemd/systemd_237.bb | |
parent | 906230a73b3ccfa4afd2a19a6b0aa18cd1d5fa08 (diff) | |
download | openembedded-core-contrib-4871d3c2b6dd6c07a2adcfbc9ecfb22e4afa2d0d.tar.gz |
systemd: fix build failure for qemux86 and qemuppc with musl
Remove the 'fstack-protector' and 'fstack-protector-strong' flags
as a workaround to fix the following error when building for qemux86
and qemuppc with musl.
undefined reference to `__stack_chk_fail_local'
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Diffstat (limited to 'meta/recipes-core/systemd/systemd_237.bb')
-rw-r--r-- | meta/recipes-core/systemd/systemd_237.bb | 4 |
1 files changed, 4 insertions, 0 deletions
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 \ " SRC_URI_append_qemuall = " file://0001-core-device.c-Change-the-default-device-timeout-to-2.patch" +# Workaround undefined reference to `__stack_chk_fail_local' on qemux86 and qemuppc for musl +SRC_URI_append_libc-musl_qemux86 = " file://0001-Remove-fstack-protector-flags-to-workaround-musl-bui.patch" +SRC_URI_append_libc-musl_qemuppc = " file://0001-Remove-fstack-protector-flags-to-workaround-musl-bui.patch" + PAM_PLUGINS = " \ pam-plugin-unix \ pam-plugin-loginuid \ |