path: root/scripts/build/libc/
diff options
authorYann E. MORIN" <>2011-01-25 23:04:41 (GMT)
committerYann E. MORIN" <>2011-01-25 23:04:41 (GMT)
commit2014041480f8d0347dfd638e451b230d2721fbf6 (patch)
tree51bc72f58f2b350ab80dd99e0256ebe37c48d5a6 /scripts/build/libc/
parentcec4bbf5c083d6abe7bd2f8d006fdb810a092332 (diff)
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" <>
Diffstat (limited to 'scripts/build/libc/')
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/build/libc/ b/scripts/build/libc/
index 1b9687b..9ba3afe 100644
--- a/scripts/build/libc/
+++ b/scripts/build/libc/
@@ -44,6 +44,10 @@ do_libc_start_files() {
mkdir -p "${CT_HEADERS_DIR}"
cp -r ${CT_SRC_DIR}/mingwrt-${CT_MINGWRT_VERSION}-mingw32/include/* \
+ # 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"
@@ -94,9 +98,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"