Add security flags
This commit is contained in:
parent
699dec623f
commit
d3b4b6d504
|
@ -1,3 +1,4 @@
|
||||||
|
require conf/distro/include/security_flags.inc
|
||||||
MACHINE ??= "aud8516p1v2-consys-slc-128"
|
MACHINE ??= "aud8516p1v2-consys-slc-128"
|
||||||
DISTRO ?= "poky-aud-systemd"
|
DISTRO ?= "poky-aud-systemd"
|
||||||
PACKAGE_CLASSES ?= "package_rpm"
|
PACKAGE_CLASSES ?= "package_rpm"
|
||||||
|
|
|
@ -89,6 +89,7 @@ SECURITY_CFLAGS_pn-uclibc-initial = ""
|
||||||
SECURITY_CFLAGS_pn-valgrind = ""
|
SECURITY_CFLAGS_pn-valgrind = ""
|
||||||
SECURITY_CFLAGS_pn-zlib = "${SECURITY_NO_PIE_CFLAGS}"
|
SECURITY_CFLAGS_pn-zlib = "${SECURITY_NO_PIE_CFLAGS}"
|
||||||
SECURITY_CFLAGS_pn-zeromq = "${SECURITY_NO_PIE_CFLAGS}"
|
SECURITY_CFLAGS_pn-zeromq = "${SECURITY_NO_PIE_CFLAGS}"
|
||||||
|
SECURITY_CFLAGS_pn-softhsm2 += " -fPIC"
|
||||||
|
|
||||||
# Recipes which fail to compile when elevating -Wformat-security to an error
|
# Recipes which fail to compile when elevating -Wformat-security to an error
|
||||||
SECURITY_STRINGFORMAT_pn-busybox = ""
|
SECURITY_STRINGFORMAT_pn-busybox = ""
|
||||||
|
@ -117,5 +118,6 @@ SECURITY_LDFLAGS_pn-xf86-video-omap = "${SECURITY_X_LDFLAGS}"
|
||||||
SECURITY_LDFLAGS_pn-xf86-video-vesa = "${SECURITY_X_LDFLAGS}"
|
SECURITY_LDFLAGS_pn-xf86-video-vesa = "${SECURITY_X_LDFLAGS}"
|
||||||
SECURITY_LDFLAGS_pn-xf86-video-vmware = "${SECURITY_X_LDFLAGS}"
|
SECURITY_LDFLAGS_pn-xf86-video-vmware = "${SECURITY_X_LDFLAGS}"
|
||||||
SECURITY_LDFLAGS_pn-xserver-xorg = "${SECURITY_X_LDFLAGS}"
|
SECURITY_LDFLAGS_pn-xserver-xorg = "${SECURITY_X_LDFLAGS}"
|
||||||
|
SECURITY_LDFLAGS_pn-softhsm2 += " -fPIC"
|
||||||
|
|
||||||
TARGET_CC_ARCH_append_pn-binutils = " ${SECURITY_CFLAGS} ${SELECTED_OPTIMIZATION}"
|
TARGET_CC_ARCH_append_pn-binutils = " ${SECURITY_CFLAGS} ${SELECTED_OPTIMIZATION}"
|
||||||
|
|
Loading…
Reference in New Issue