1 |
On Wed, Apr 20, 2011 at 10:23 AM, Christopher Friedt |
2 |
<chrisfriedt@×××××.com> wrote: |
3 |
> localhost ~ # x86_64-pc-linux-bionic-gcc -static -m32 |
4 |
> -specs=specfile.txt -o hi hi.c |
5 |
> localhost ~ # ./hi |
6 |
> Hello, Bionic World! |
7 |
|
8 |
/ # LD_LIBRARY_PATH=/lib ./hi |
9 |
Hello, Bionic world! |
10 |
|
11 |
I am now in the choot via busybox ;-) |
12 |
|
13 |
> 1) Fix internal specs (had to manually adjust for crts startfile/endfile) |
14 |
|
15 |
Fixed 1) partially. |
16 |
|
17 |
Still need to add the proper linker spec (/bin/linker) and default |
18 |
library path spec (/lib). |
19 |
|
20 |
> 2) make it work for -m64 by default |
21 |
|
22 |
Forgetting about 2) this for now until upstream cares about 64-bit |
23 |
support. It's actually pretty straight forward to implement, but my |
24 |
immediate agenda will be x86 and arm. |
25 |
|
26 |
3) This is definitely proving to be a good lesson in ensuring |
27 |
compatibility. I've had to add stubs for & implement some syscalls to |
28 |
get busybox to compile. Every package that doesn't compile is like a |
29 |
new adventure in /usr/include convention. Building a static strace for |
30 |
now to help diagnose problems. |
31 |
|
32 |
It's coming along, and as soon as most of the busybox applets Just |
33 |
Work™ I'll put it up the overlay. Seems promising so far though ;-) |
34 |
|
35 |
C |