diff options
author | Alejandro Hernandez Samaniego <alejandro@enedino.org> | 2024-05-18 23:50:49 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-05-22 10:21:26 +0100 |
commit | 775530999a308b1c9efcaafb115c335bc2d8b698 (patch) | |
tree | 072766423606c745a90edb34fbb1b7ffb1472fbc /meta/conf | |
parent | 4f8c553cdb617a4b31b97f0a840c0517286f3222 (diff) | |
download | poky-775530999a308b1c9efcaafb115c335bc2d8b698.tar.gz |
tclibc-newlib: update security cflags override
It appears that it is no longer necessary to disable security cflags for
newlib targets, with the exception of RISCV architectures where the linker
does not support PIE
(From OE-Core rev: 94a3459c77ad48caab42ca816d984fe467042ce3)
Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandro@enedino.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/conf')
-rw-r--r-- | meta/conf/distro/include/tclibc-newlib.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/conf/distro/include/tclibc-newlib.inc b/meta/conf/distro/include/tclibc-newlib.inc index 238b430e49..34318b2454 100644 --- a/meta/conf/distro/include/tclibc-newlib.inc +++ b/meta/conf/distro/include/tclibc-newlib.inc | |||
@@ -42,6 +42,6 @@ TOOLCHAIN_HOST_TASK ?= "packagegroup-cross-canadian-${MACHINE} nativesdk-qemu na | |||
42 | TOOLCHAIN_TARGET_TASK ?= "${LIBC_DEPENDENCIES}" | 42 | TOOLCHAIN_TARGET_TASK ?= "${LIBC_DEPENDENCIES}" |
43 | TOOLCHAIN_NEED_CONFIGSITE_CACHE:remove = "zlib ncurses" | 43 | TOOLCHAIN_NEED_CONFIGSITE_CACHE:remove = "zlib ncurses" |
44 | 44 | ||
45 | # disable pie security flags by default | 45 | # disable pie security flags by default since RISCV linker doesnt support them |
46 | SECURITY_CFLAGS:libc-newlib = "${SECURITY_NOPIE_CFLAGS}" | 46 | SECURITY_CFLAGS:libc-newlib:qemuriscv32 = "${SECURITY_NOPIE_CFLAGS}" |
47 | SECURITY_LDFLAGS:libc-newlib = "" | 47 | SECURITY_CFLAGS:libc-newlib:qemuriscv64 = "${SECURITY_NOPIE_CFLAGS}" |