Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: SSP_CFLAGS for kernel

1 view
Skip to first unread message

bryn1u85

unread,
May 5, 2018, 6:45:45 AM5/5/18
to
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.

2018-05-05 2:59 GMT+02:00 Rozhuk Ivan <rozh...@gmail.com>:

> 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"
> _______________________________________________
> freebsd...@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hacke...@freebsd.org"
>
_______________________________________________
freebsd...@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hacke...@freebsd.org"

Rozhuk Ivan

unread,
May 5, 2018, 7:37:15 AM5/5/18
to
On Sat, 5 May 2018 12:38:37 +0200
bryn1u85 <m.br...@gmail.com> wrote:

> Don't touch src.conf

I want to buils kernel and system with SSP too.


> Entry for make.conf should looks like below:
>
> 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.
0 new messages