Posted: Mon 04 Nov 2013, 12:06 Post_subject:
How to make gcc cross compiler (for i386) on 64 bit puppy?Sub_title: How to compile gcc source to make a cross compiler which can produce i386 executable, on Fatdog 611.

So, now use your new linker and compiler to compile glibc -it should be the same version as that used on the target system, and it should use the same patches (if any) and configuration options as the target systems' glibc. Be sure to use your separate prefix as for binutils and gcc.

Then when compiling apps for the target, you need to export LD_LIBRARY_PATH to the toolchain so that linking is done against the 32-bit libs above. If the app you want to compile rewuires other lobs besides glibc, then you'll need to compile and (subdir) install them before building.

Lot's of luck -cross-compiling can be a nightmare -even when things go well...

And beware of what amigo said, this is so true:
[quote=amigo]Lot's of luck -cross-compiling can be a nightmare -even when things go well...[/quote]_________________Fatdog64, Slacko and Puppeee user. Puppy user since 2.13.
Contributed Fatdog64 packages thread