[PATCH] cc/gcc: pass --with-float to configure
Yann E. MORIN
yann.morin.1998@anciens.enib.fr
Mon Dec 12 21:57:00 GMT 2011
Benoît, All,
On Monday 12 December 2011 21:28:29 Benoît Thébaudeau wrote:
> # HG changeset patch
> # User "Benoît Thébaudeau" <benoit.thebaudeau@advansee.com>
> # Date 1323721590 -3600
> # Node ID bd159438bf3a1dae64e2bbffd6eaaa19f72fe4ad
> # Parent 7a5ee8d36a1de21f8cb1e1cd138c0f066f0ec8c2
> cc/gcc: pass --with-float to configure
>
> The --with-float configure option defines the default -mhard-float, -msoft-float
> or -mfloat-abi option of the built GCC. The --with-float option is ignored if
> any of the latter options is passed to GCC.
>
> Currently, these options are passed to GCC through the C(XX)FLAGS_FOR_TARGET
> environment variables, but these variables are only used to build GCC's internal
> stuff and libraries. Hence, --with-float has to be passed to GCC's configure to
> define the default options of the final GCC.
This should be already handled by the code on lines #176 and #439:
http://crosstool-ng.org/hg/crosstool-ng/file/7a5ee8d36a1d/scripts/build/cc/gcc.sh#l176
176 for tmp in ARCH ABI CPU TUNE FPU FLOAT; do
177 eval tmp="\${CT_ARCH_WITH_${tmp}}"
178 if [ -n "${tmp}" ]; then
179 extra_config+=("${tmp}")
180 fi
181 done
(same code on line #439 for the final gcc)
Isn't it the case for you?
Regards,
Yann E. MORIN.
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
--
For unsubscribe information see http://sourceware.org/lists.html#faq
More information about the crossgcc
mailing list