bug-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Initial cross-compilation support


From: Ludovic Courtès
Subject: Re: Initial cross-compilation support
Date: Fri, 24 May 2013 23:30:30 +0200
User-agent: Gnus/5.130007 (Ma Gnus v0.7) Emacs/24.3 (gnu/linux)

Nikita Karetnikov <address@hidden> skribis:

> I was able to cross-compile a "hello world" program.
>
> First, I created the following symlinks:
>
> # ln -s 
> /nix/store/mifp2p1zjlvb4ndslw1r8grkpglybqjf-glibc-cross-mips64el-linux-gnu-2.17/lib/crti.o
>  
> /nix/store/khdyz3i5aih56lxfk6hjvp3884apm7qb-gcc-cross-mips64el-linux-gnu-4.7.2/lib/gcc/mips64el-linux-gnu/4.7.2/crti.o
> # ln -s 
> /nix/store/mifp2p1zjlvb4ndslw1r8grkpglybqjf-glibc-cross-mips64el-linux-gnu-2.17/lib/crt1.o
>  
> /nix/store/khdyz3i5aih56lxfk6hjvp3884apm7qb-gcc-cross-mips64el-linux-gnu-4.7.2/lib/gcc/mips64el-linux-gnu/4.7.2/crt1.o
> # ln -s 
> /nix/store/mifp2p1zjlvb4ndslw1r8grkpglybqjf-glibc-cross-mips64el-linux-gnu-2.17/lib/crtn.o
>  
> /nix/store/khdyz3i5aih56lxfk6hjvp3884apm7qb-gcc-cross-mips64el-linux-gnu-4.7.2/lib/gcc/mips64el-linux-gnu/4.7.2/crtn.o
>
> These are needed because I haven't found a way to set the
> CROSS_LIBRARY_PATH variable.  (I'll show an example below.)

The problem of ‘CROSS_LIBRARY_PATH’ being ignored is fixed by commit 248d08e.
Took me a bit of browsing to find out where that happens in GCC.

Ludo’.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]