scripts/build/libc/glibc-eglibc.sh-common
changeset 2821 fc0afaf5c817
parent 2820 8a836b6d6e8c
child 2822 09abd5f4295b
     1.1 --- a/scripts/build/libc/glibc-eglibc.sh-common	Mon Nov 21 23:33:08 2011 +0100
     1.2 +++ b/scripts/build/libc/glibc-eglibc.sh-common	Mon Nov 21 23:56:53 2011 +0100
     1.3 @@ -77,6 +77,7 @@
     1.4      local -a extra_config
     1.5      local -a extra_make_args
     1.6      local glibc_cflags
     1.7 +    local float_extra
     1.8  
     1.9      while [ $# -ne 0 ]; do
    1.10          eval "${1// /\\ }"
    1.11 @@ -135,10 +136,19 @@
    1.12          *) extra_config+=("--disable-shared");;
    1.13      esac
    1.14  
    1.15 -    case "${CT_ARCH_FLOAT}" in
    1.16 +    float_extra="$( echo "${extra_flags}"       \
    1.17 +                    |${sed} -r -e '/^(.*[[:space:]])?-m(hard|soft)-float([[:space:]].*)?$/!d;'  \
    1.18 +                               -e 's//\2/;'     \
    1.19 +                  )"
    1.20 +    case "${float_extra}" in
    1.21          hard)   extra_config+=("--with-fp");;
    1.22          soft)   extra_config+=("--without-fp");;
    1.23 -        softfp) extra_config+=("--with-fp");;
    1.24 +        "")
    1.25 +            case "${CT_ARCH_FLOAT}" in
    1.26 +                hard|softfp)    extra_config+=("--with-fp");;
    1.27 +                soft)           extra_config+=("--without-fp");;
    1.28 +            esac
    1.29 +            ;;
    1.30      esac
    1.31  
    1.32      if [ "${CT_LIBC_DISABLE_VERSIONING}" = "y" ]; then