[Buildroot] [PATCHv2 01/25] gcc: use BR2_EXTRA_GCC_CONFIG_OPTIONS in gcc-initial and gcc-intermediate

Peter Korsgaard jacmet at uclibc.org
Sun Jul 14 20:30:19 UTC 2013

>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni at free-electrons.com> writes:

 Thomas> When refactoring the internal toolchain backend logic, the code was
 Thomas> changed to pass the custom configure options given through
 Thomas> BR2_EXTRA_GCC_CONFIG_OPTIONS only for the gcc final pass, with the
 Thomas> idea that we're only interested by user customization for the final
 Thomas> compiler.

 Thomas> However, the beaglebone_defconfig was passing --with-float=hard
 Thomas> --with-fpu=vfpv3-d16 as BR2_EXTRA_GCC_CONFIG_OPTIONS, and since the
 Thomas> refactoring, it was causing build failures of the beaglebone_defconfig
 Thomas> (with messages saying that Busybox is built to use VFP arguments, but
 Thomas> libc/libm are not). This is due to the fact that the gcc intermediate,
 Thomas> which is used to build the C library, wasn't built to generate hard
 Thomas> float, while the final compiler was generating hard float.

 Thomas> So, we get back to the original situation where the options in
 Thomas> BR2_EXTRA_GCC_CONFIG_OPTIONS are passed to all of the compiler
 Thomas> passes. Of course, the specific case of hard float will be fixed by
 Thomas> following patches in this area, but the idea still remains: the three
 Thomas> gcc should have the same options, if those options affected the ABI of
 Thomas> the generated code.

Committed, thanks.

Bye, Peter Korsgaard

More information about the buildroot mailing list