Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 340989

Summary: sys-devel/crossdev: support mingw C libraries
Product: Gentoo Linux Reporter: Dennis Schridde <dschridde+gentoobugs>
Component: [OLD] Core systemAssignee: Embedded Gentoo Team <embedded>
Status: RESOLVED FIXED    
Severity: enhancement    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Dennis Schridde 2010-10-14 14:51:26 UTC
Following snippet is from emerge-wrapper as shipped in sys-devel/crossdev-20101011:
    LIBC="__LIBC__"
    case ${CHOST} in
        *gnu*)    LIBC=glibc ;;
        *uclibc*) LIBC=uclibc ;;
        *)        emit_setup_warning ;;
    esac

It does not recognize *mingw* as valid CHOST, thus generates a warning and  __CHOST__ and __LIBC__ as values to CHOST and ELIBC in /usr/$chost/etc/make.conf.
This should probably fixed to something like:
    case ${CHOST} in
        *gnu*)    LIBC=glibc ;;
        *uclibc*) LIBC=uclibc ;;
        *mingw*)  LIBC=mingwrt ;;
        *)        emit_setup_warning ;;
    esac

(I have not thoroughly tested what impact the wrong ELIBC/CHOST setting in make.conf has.)

Reproducible: Always
Comment 1 solar (RETIRED) gentoo-dev 2010-10-16 10:49:06 UTC
Please test this setting as we are not likely to.