scripts/build/cc/gcc.sh
changeset 2017 f637b6c2162b
parent 2014 cd9322b076d7
child 2031 3917f2dafed1
     1.1 --- a/scripts/build/cc/gcc.sh	Sat Jul 10 15:25:10 2010 +0200
     1.2 +++ b/scripts/build/cc/gcc.sh	Sun Jul 11 21:36:20 2010 +0200
     1.3 @@ -68,6 +68,8 @@
     1.4          ,,nptl)
     1.5              do_cc_core mode=shared build_libgcc=yes
     1.6              ;;
     1.7 +        ,,win32) do_cc_core mode=static build_libgcc=yes
     1.8 +            ;;
     1.9          *)  if [ "${CT_CC_GCC_4_3_or_later}" = "y" ]; then
    1.10                  do_cc_core mode=static build_libgcc=yes
    1.11              else
    1.12 @@ -361,7 +363,12 @@
    1.13              extra_config+=("--disable-libgomp")
    1.14          fi
    1.15      else
    1.16 -        extra_config+=("--enable-threads=posix")
    1.17 +        if [ "${CT_THREADS}" = "win32" ]; then
    1.18 +            extra_config+=("--enable-threads=win32")
    1.19 +            extra_config+=("--disable-win32-registry")
    1.20 +        else
    1.21 +            extra_config+=("--enable-threads=posix")
    1.22 +        fi
    1.23      fi
    1.24  
    1.25      if [ "${CT_CC_GCC_ENABLE_TARGET_OPTSPACE}" = "y" ]; then