scripts/build/libc/uClibc.sh
changeset 1977 d11009b668dd
parent 1910 207ad430c254
child 2007 de03369df50d
     1.1 --- a/scripts/build/libc/uClibc.sh	Wed Apr 07 09:18:20 2010 +0200
     1.2 +++ b/scripts/build/libc/uClibc.sh	Wed Jun 09 00:41:25 2010 +0200
     1.3 @@ -327,6 +327,36 @@
     1.4  			ENDSED
     1.5      fi
     1.6  
     1.7 +    # Push the threading model
     1.8 +    # Note: we take into account all of the .28, .29, .30 and .31
     1.9 +    #       versions, here.
    1.10 +    case "${CT_THREADS}:${CT_LIBC_UCLIBC_LNXTHRD}" in
    1.11 +        none:*)
    1.12 +            cat <<-ENDSED
    1.13 +				s/^# HAS_NO_THREADS is not set/HAS_NO_THREADS=y/
    1.14 +				s/^UCLIBC_HAS_THREADS=y/# UCLIBC_HAS_THREADS is not set/
    1.15 +				s/^LINUXTHREADS_OLD=y/# LINUXTHREADS_OLD is not set/
    1.16 +				s/^LINUXTHREADS_NEW=y/# LINUXTHREADS_NEW is not set/
    1.17 +				ENDSED
    1.18 +            ;;
    1.19 +        *:old)
    1.20 +            cat <<-ENDSED
    1.21 +				s/^HAS_NO_THREADS=y/# HAS_NO_THREADS is not set/
    1.22 +				s/^# UCLIBC_HAS_THREADS is not set/UCLIBC_HAS_THREADS=y/
    1.23 +				s/^# LINUXTHREADS_OLD is not set/# LINUXTHREADS_OLD=y/
    1.24 +				s/^LINUXTHREADS_NEW=y/# LINUXTHREADS_NEW is not set/
    1.25 +				ENDSED
    1.26 +            ;;
    1.27 +        *:new)
    1.28 +            cat <<-ENDSED
    1.29 +				s/^# HAS_NO_THREADS is not set/HAS_NO_THREADS=y/
    1.30 +				s/^# UCLIBC_HAS_THREADS is not set/UCLIBC_HAS_THREADS=y/
    1.31 +				s/^LINUXTHREADS_OLD=y/# LINUXTHREADS_OLD is not set/
    1.32 +				s/^# LINUXTHREADS_NEW is not set/# LINUXTHREADS_NEW=y/
    1.33 +				ENDSED
    1.34 +            ;;
    1.35 +    esac
    1.36 +
    1.37      # Always build the libpthread_db
    1.38      cat <<-ENDSED
    1.39  		s/^# PTHREADS_DEBUG_SUPPORT is not set.*/PTHREADS_DEBUG_SUPPORT=y/