This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] scripts: do not remove include symlink


# HG changeset patch
# User "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
# Date 1287777297 -7200
# Node ID 2e28d0cb642adfa5bb716991246b99e7eb12ac8c
# Parent  ef0142a8ad4cf48464012e3ebd1bf5cf4668923d
scripts: do not remove include symlink

We keep the PREFIX/TUPLE/include -> SYSROOT/usr/include symlink,
as g++ would not correctly find the headers without it.

See the test by Anthony (by the end of the messages):
  http://sourceware.org/ml/crossgcc/2010-10/msg00129.html
  http://sourceware.org/ml/crossgcc/2010-10/msg00134.html

Reported-by: Anthony Foiani <anthony.foiani@gmail.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

diff --git a/scripts/build/internals.sh b/scripts/build/internals.sh
--- a/scripts/build/internals.sh
+++ b/scripts/build/internals.sh
@@ -155,10 +155,9 @@
         CT_DoExecLog ALL rm -f "${d}/lib64"
     done
 
-    # Also remove the include/ and lib/ symlinks out-side of sysroot
+    # Also remove the lib/ symlink out-side of sysroot
     if [ "${CT_USE_SYSROOT}" = "y" ]; then
         CT_DoExecLog ALL rm -f "${CT_PREFIX_DIR}/${CT_TARGET}/lib"
-        CT_DoExecLog ALL rm -f "${CT_PREFIX_DIR}/${CT_TARGET}/include"
     fi
 
     CT_EndStep



--
For unsubscribe information see http://sourceware.org/lists.html#faq


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]