I have to stay home today just in case my employer calls me for assistance, so i decided to mess around with FreeBSD ports on my laptop
I've installed gcc46 (as described in the handbook, but for gcc44) and tried to recompile all ports.
I known this is not a good idea, but remember i'm just playing with my computer to kill time and probably most of the softwares i've installed so far.
I got some problems with the stack protector flag (now enabled by default), lots of ports failed to build with the following error :
- Code: Select all
undefined reference to `__stack_chk_fail_local'
So i decided to remove it (...) by adding the line "SSP_CFLAGS=" in [FILE]/etc/make.conf[/FILE], only for ports.
Seems like it's building fine now, but i have a couple of questions :
Is this a known problem ?
Is SSP_CFLAGS= the "right way", if any, to disable stack protection ?
Or, is there any way to keep stack protection and build with gcc46 ?