This is the mail archive of the
libc-hacker@sourceware.cygnus.com
mailing list for the glibc project.
Re: cross-compilation fails
- To: Elliot Lee <sopwith@redhat.com>
- Subject: Re: cross-compilation fails
- From: Zack Weinberg <zack@rabi.phys.columbia.edu>
- Date: Fri, 12 Jun 1998 14:40:09 -0400
- cc: libc-alpha@cygnus.com
On Fri, 12 Jun 1998 10:59:22 -0400 (EDT), Elliot Lee wrote:
>I built a cross-compiling environment (I verified that it compiles & links
>a very basic program properly) and then configured libc as such:
>
>AR=ppc-linux-ar RANLIB=ppc-linux-ranlib CC=ppc-linux-gcc ../configure \
> --target=ppc-linux --enable-add-ons=crypt,linuxthreads \
> --with-headers=/opt/src/sopwith/ppc/ppc-linux/sys-include \
> --host=i686-unknown-linux
Try --build=i686-unknown-linux --host=ppc-linux. --target is only used when
compiling cross-compilers.
Everything else is fine, except that it *should* pick the right ar, ranlib,
and cc by itself.
zw