scripts/build/libc/mingw.sh
changeset 2282 fa5c70b11fec
parent 2278 e86826b8621a
child 2354 c7fa1f177830
     1.1 --- a/scripts/build/libc/mingw.sh	Sat Jan 22 22:36:20 2011 +0100
     1.2 +++ b/scripts/build/libc/mingw.sh	Wed Jan 26 00:04:41 2011 +0100
     1.3 @@ -44,6 +44,10 @@
     1.4      mkdir -p "${CT_HEADERS_DIR}"
     1.5      cp -r ${CT_SRC_DIR}/mingwrt-${CT_MINGWRT_VERSION}-mingw32/include/* \
     1.6            ${CT_HEADERS_DIR}
     1.7 +
     1.8 +    # It seems mingw is strangely set up to look into /mingw instead of
     1.9 +    # /usr (notably when looking for the headers). This symlink is
    1.10 +    # here to workaround this, and seems to be here to last... :-/
    1.11      CT_DoExecLog ALL ln -sv "usr" "${CT_SYSROOT_DIR}/mingw"
    1.12  
    1.13      CT_EndStep
    1.14 @@ -94,9 +98,6 @@
    1.15  }
    1.16  
    1.17  do_libc_finish() {
    1.18 -    # Remove the build-symlink now it is no longer needed.
    1.19 -    CT_DoExecLog ALL rm -f "${CT_SYSROOT_DIR}/mingw"
    1.20 -
    1.21      CT_DoStep INFO "Installing MinGW Development libraries"
    1.22  
    1.23      CT_Pushd "${CT_SYSROOT_DIR}"