[vbox-dev] specify CFLAGS

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


Hi,

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
-fexceptions.

All definitions are done in Config.kmk. Use

  VBOX_GCC_FP
  VBOX_GCC_OPT
  VBOX_GCC_GC_OPT

to override some optimization flags.

Kind regards,

Frank
-- 
## 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.sig>


More information about the vbox-dev mailing list