Discussion:
SSP_CFLAGS for kernel
(too old to reply)
bryn1u85
2018-05-05 10:38:37 UTC
Permalink
Hey,
Don't touch src.conf

Entry for make.conf should looks like below:

WITH_SSP_PORTS=YES

SSP_CFLAGS=-fstack-protector-all

SSP_CXXFLAGS=-fstack-protector-all

It's working for me.
Hi!
WITH_SSP=
SSP_CFLAGS=-fstack-protector-all
WITH_SSP_PORTS=yes
...
#
# GCC SSP support
#
.if ${MK_SSP} != "no" && \
${MACHINE_CPUARCH} != "arm" && ${MACHINE_CPUARCH} != "mips"
CFLAGS+= -fstack-protector
.endif
...
SSP_CFLAGS?= -fstack-protector
CFLAGS+= ${SSP_CFLAGS}
???
PS: /usr/ports/UPDATING
"The default SSP_CLFAGS is -fstack-protector, but -fstack-protector-all"
"The default SSP_CFLAGS is -fstack-protector, but -fstack-protector-all"
_______________________________________________
https://lists.freebsd.org/mailman/listinfo/freebsd-hackers
Rozhuk Ivan
2018-05-05 11:33:35 UTC
Permalink
On Sat, 5 May 2018 12:38:37 +0200
Post by bryn1u85
Don't touch src.conf
I want to buils kernel and system with SSP too.
Post by bryn1u85
WITH_SSP_PORTS=YES
SSP_CFLAGS=-fstack-protector-all
SSP_CXXFLAGS=-fstack-protector-all
SSP_CXXFLAGS does not used in system and ports, at least on 11.2.
Loading...