diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2011-01-26 00:04:41 +0100 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2011-01-26 00:04:41 +0100 |
commit | a26955263f61e976713e2a095e662bef6c0cd659 (patch) | |
tree | 16dd042af63f2e9585c4d1ee196b1a4a4b1545dd | |
parent | 271ce7b2f41c855a7303484d219228a9441b10af (diff) | |
download | crosstool-ng-a26955263f61e976713e2a095e662bef6c0cd659.tar.gz crosstool-ng-a26955263f61e976713e2a095e662bef6c0cd659.tar.bz2 crosstool-ng-a26955263f61e976713e2a095e662bef6c0cd659.zip |
libc/mingw: do not remove support symlink
Under mingw, it seems that there is a mix between the traditional /usr
directory, and a similar-purposed /mingw directory (both in the sysroot).
Currently, we create /mingw as a symlink to /usr, and we removed it in
the libc-finish step.
Unfortunately, this prevents the pre-processor to find the headers.
Keeping the symlink makes it magically work...
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
(transplanted from fa5c70b11fecf390c78780fe8f8ba0a836a59e92)
-rw-r--r-- | scripts/build/libc/mingw.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/build/libc/mingw.sh b/scripts/build/libc/mingw.sh index 303f1c2b..fffed598 100644 --- a/scripts/build/libc/mingw.sh +++ b/scripts/build/libc/mingw.sh @@ -44,6 +44,10 @@ do_libc_headers() { mkdir -p "${CT_HEADERS_DIR}" cp -r ${CT_SRC_DIR}/mingwrt-${CT_MINGWRT_VERSION}-mingw32/include/* \ ${CT_HEADERS_DIR} + + # It seems mingw is strangely set up to look into /mingw instead of + # /usr (notably when looking for the headers). This symlink is + # here to workaround this, and seems to be here to last... :-/ CT_DoExecLog ALL ln -sv "usr" "${CT_SYSROOT_DIR}/mingw" CT_EndStep @@ -98,9 +102,6 @@ do_libc() { } do_libc_finish() { - # Remove the build-symlink now it is no longer needed. - CT_DoExecLog ALL rm -f "${CT_SYSROOT_DIR}/mingw" - CT_DoStep INFO "Installing MinGW Development libraries" CT_Pushd "${CT_SYSROOT_DIR}" |