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]

Re: [PATCH 08 of 14] keep symbolic link to lib outside sysroot for mingw


Bart, All,

On Saturday 14 May 2011 16:01:35 Bart vdr. Meulen wrote:
> # 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

This is very similar to what I had to do on the canadian branch:
http://crosstool-ng.org/hg/crosstool-ng/ct-ng.canadian/file/b2cab7c01767/scripts-internals-do-not-remove-lib-symlinks

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

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