This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] cc/gcc: pass --with-float to configure


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

Signed-off-by: "BenoÃt ThÃbaudeau" <benoit.thebaudeau@advansee.com>

diff --git a/scripts/build/cc/gcc.sh b/scripts/build/cc/gcc.sh
--- a/scripts/build/cc/gcc.sh
+++ b/scripts/build/cc/gcc.sh
@@ -311,6 +311,7 @@
         ${CC_CORE_SYSROOT_ARG}                      \
         "${extra_config[@]}"                        \
         --enable-languages="${lang_opt}"            \
+        ${CT_ARCH_WITH_FLOAT}                       \
         "${CT_CC_CORE_EXTRA_CONFIG_ARRAY[@]}"
 
     if [ "${build_libgcc}" = "yes" ]; then
@@ -622,6 +623,7 @@
         --with-local-prefix="${CT_SYSROOT_DIR}"     \
         --enable-c99                                \
         --enable-long-long                          \
+        ${CT_ARCH_WITH_FLOAT}                       \
         "${CT_CC_EXTRA_CONFIG_ARRAY[@]}"
 
     if [ "${CT_CANADIAN}" = "y" ]; then

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]