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 ##

Attachment: pgpYBhUgrBMyd.pgp
Description: PGP signature

_______________________________________________
vbox-dev mailing list
[email protected]
http://vbox.innotek.de/mailman/listinfo/vbox-dev

Reply via email to