mirror of
https://git.yoctoproject.org/poky
synced 2026-04-04 23:02:22 +02:00
security_flags: ensure security flags only apply to target builds
As otherwise the security flags can leak into target builds. This can result in flags that the host compiler doesn't support, causing build failures. (From OE-Core rev: ff2c8af73046f55aa733ce8289b6236c88300290) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -88,8 +88,8 @@ SECURITY_CFLAGS_pn-zlib = "${SECURITY_NO_PIE_CFLAGS}"
|
||||
SECURITY_CFLAGS_pn-ltp = "${SECURITY_NO_PIE_CFLAGS}"
|
||||
SECURITY_CFLAGS_pn-pulseaudio = "${SECURITY_NO_PIE_CFLAGS}"
|
||||
|
||||
TARGET_CFLAGS_append = " ${SECURITY_CFLAGS}"
|
||||
TARGET_LDFLAGS_append = " ${SECURITY_LDFLAGS}"
|
||||
TARGET_CFLAGS_append_class-target = " ${SECURITY_CFLAGS}"
|
||||
TARGET_LDFLAGS_append_class-target = " ${SECURITY_LDFLAGS}"
|
||||
|
||||
SECURITY_LDFLAGS_pn-xf86-video-fbdev = "${SECURITY_X_LDFLAGS}"
|
||||
SECURITY_LDFLAGS_pn-xf86-video-intel = "${SECURITY_X_LDFLAGS}"
|
||||
|
||||
Reference in New Issue
Block a user