Gentoo Archives: gentoo-amd64

From: Xi Shen <davidshen84@××××××××××.com>
To: gentoo-amd64@l.g.o
Subject: Re: [gentoo-amd64]corss compile 64bit on 32bit os
Date: Wed, 16 Sep 2009 13:36:39
Message-Id: 53e35fd50909160636l53ba14ffm6aa060f5f9648146@mail.gmail.com
In Reply to: Re: [gentoo-amd64]corss compile 64bit on 32bit os by Xi Shen
1 when reading that doc, i cannot understand the following script
2
3 #!/bin/bash
4 exec /usr/lib/distcc/bin/sparc-unknown-linux-gnu-g${0:$[-2]} "$@"
5
6 what does the ":" do here?
7
8
9 On Wed, Sep 16, 2009 at 9:14 PM, Xi Shen <davidshen84@××××××××××.com> wrote:
10 > great! thanks a lot. why i did not find this out, haha ;)
11 >
12 >
13 > On Wed, Sep 16, 2009 at 8:08 PM, malc <mlashley@×××××.com> wrote:
14 >> On Wed, Sep 16, 2009 at 9:41 AM, Xi Shen <davidshen84@××××××××××.com> wrote:
15 >>>
16 >>> i want to use discc to speed my emerge compilation. but the problem is
17 >>> that i have 32bit and 64bit mixed environment, and some of the cpus do
18 >>> not support amd64 mode. so i just wonder if i could do cross compile.
19 >>>
20 >>> has anyone done this before? any suggestions/comments are welcomed.
21 >>
22 >> Did you try - http://www.gentoo.org/doc/en/cross-compiling-distcc.xml ?
23 >>
24 >> Cheers,
25 >> malc.
26 >>
27 >>
28 >
29 >
30 >
31 > --
32 > Best Regards,
33 > David Shen
34 >
35 > http://twitter.com/davidshen84/
36 > http://meme.yahoo.com/davidshen84/
37 >
38
39
40
41 --
42 Best Regards,
43 David Shen
44
45 http://twitter.com/davidshen84/
46 http://meme.yahoo.com/davidshen84/

Replies

Subject Author
Re: [gentoo-amd64]corss compile 64bit on 32bit os Frank Peters <frank.peters@×××××××.net>