On Wed, Feb 13, 2013 at 4:22 AM, Dmitry Marakasov <amd...@amdmi3.ru> wrote:
> * Kimmo Paasiala (kpaas...@gmail.com) wrote:
>
>> Does the -fstack-protector option work on CLANG 3.1 and 3.2?
>>
>> There is thread on FreeBSD forums about the stack protector and ports
>> and I'm wondering if it's possible to use the -fstack-protector option
>> with CLANG.
>>
>> http://forums.freebsd.org/showthread.php?t=36927
>
> You might be interested in this patch:
>
> https://github.com/AMDmi3/freebsd-ports-mk/compare/master...stack-protector
>
> afaik, in prior discussion some years ago an issue was mentioned that
> some ports don't build with stack-protector, so I suggested to introduce
> STACK_PROTECTOR_SAFE/_UNSAFE knobs similar to what we have for
> MAKE_JOBS_SAFE_/_UNSAFE (we might actually only need
> STACK_PROTECTOR_UNSAFE, as unlike MAKE_JOBS, build errors caused by
> enabling stack protector are not transient, so we can have an exp-run
> to just mark all uncompatible ports and consider all others compatible).
>
> If there's interest in this, I can refresh the patch and submit it.
>

Yes, this is very much what I had in mind. Please submit it :)

-Kimmo
_______________________________________________
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

Reply via email to