Date: Sat, 5 May 2018 03:59:31 +0300 From: Rozhuk Ivan <rozhuk.im@gmail.com> To: freebsd-current@freebsd.org, FreeBSD Hackers <freebsd-hackers@freebsd.org>, bdrewery@FreeBSD.org Cc: Rozhuk Ivan <Rozhuk.IM@gmail.com> Subject: SSP_CFLAGS for kernel Message-ID: <20180505035931.33120d74@gmail.com>
next in thread | raw e-mail | index | archive | help
Hi! I set: /etc/src.conf: WITH_SSP= /etc/make.conf: SSP_CFLAGS=-fstack-protector-all WITH_SSP_PORTS=yes But in /usr/src/sys/conf/kern.mk: ... # # GCC SSP support # .if ${MK_SSP} != "no" && \ ${MACHINE_CPUARCH} != "arm" && ${MACHINE_CPUARCH} != "mips" CFLAGS+= -fstack-protector .endif ... Is there should be some thing like in /usr/src/share/mk/bsd.sys.mk: SSP_CFLAGS?= -fstack-protector CFLAGS+= ${SSP_CFLAGS} ??? PS: /usr/ports/UPDATING "The default SSP_CLFAGS is -fstack-protector, but -fstack-protector-all" should be: "The default SSP_CFLAGS is -fstack-protector, but -fstack-protector-all"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20180505035931.33120d74>