[vbox-dev] specify CFLAGS

Frank Mehnert frank at innotek.de
Sun Mar 11 11:06:28 PDT 2007


On Saturday 10 March 2007, Till Maas wrote:
> how should custom CFLAGS be specified when building virtualbox?
> I set in the enviroment CFLAGS, CXXFLAGS and VBOX_GCC_GC_OP but I cannot
> see whether or not they are honoured and it seems they are not. What would
> be the correct way? (I need to specify the following
> flags: "-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
> -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic
> -fasynchronous-unwind-tables"

Be careful with -fstack-protector. It creates open references to external
stack checking functions which cannot be satisfied in every case. Same with

All definitions are done in Config.kmk. Use


to override some optimization flags.

Kind regards,

## InnoTek Systemberatung GmbH, http://www.innotek.de ##
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.virtualbox.org/pipermail/vbox-dev/attachments/20070311/9e19fad0/attachment-0001.bin 

More information about the vbox-dev mailing list