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 08 of 14] keep symbolic link to lib outside sysroot for mingw


# HG changeset patch
# User Bart vdr. Meulen <bartvdrmeulen@gmail.com>
# Date 1305381590 -7200
# Node ID d4e64fea5a9f69d8a82cac42e70902fb691af81b
# Parent  3e30b83725e60e94501b46534af2c10d0bd8844a
keep symbolic link to lib outside sysroot for mingw
The symbolic link to the lib directory outside the sysroot directory needs to
be there for mingw targetting compilers when the compiler is actual used to
compile code for the target otherwise the linker will complain that crt1.o can
not be found

Signed-off-by: Bart vdr. Meulen <bartvdrmeulen@gmail.com>
---
 scripts/build/internals.sh |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/scripts/build/internals.sh b/scripts/build/internals.sh
--- a/scripts/build/internals.sh
+++ b/scripts/build/internals.sh
@@ -122,8 +122,11 @@
         CT_DoExecLog ALL rm -f "${d}/lib64"
     done
 
-    # Also remove the lib/ symlink out-side of sysroot
-    if [ "${CT_USE_SYSROOT}" = "y" ]; then
+    # Also remove the lib/ symlink out-side of sysroot,
+    # For mingw hosted compilers the symlink needs to remain, otherwise
+    # the compiler will complain that crt1.o can not be found during linking
+    # of an application / library
+    if [ "${CT_USE_SYSROOT}" = "y" -a "${CT_MINGW32}" != "y" ]; then
         CT_DoExecLog ALL rm -f "${CT_PREFIX_DIR}/${CT_TARGET}/lib"
     fi
 

--
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]