This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
RE: [PATCH 2/2] Remove ancient GCC string inlines
- From: Joseph Myers <joseph at codesourcery dot com>
- To: Wilco Dijkstra <wdijkstr at arm dot com>
- Cc: 'GNU C Library' <libc-alpha at sourceware dot org>
- Date: Mon, 12 Oct 2015 11:33:36 +0000
- Subject: RE: [PATCH 2/2] Remove ancient GCC string inlines
- Authentication-results: sourceware.org; auth=none
- References: <000401d102aa$8db859e0$a9290da0$ at com> <alpine dot DEB dot 2 dot 10 dot 1510091558180 dot 20476 at digraph dot polyomino dot org dot uk> <000801d102b1$3e4f33e0$baed9ba0$ at com> <alpine dot DEB dot 2 dot 10 dot 1510091657190 dot 20476 at digraph dot polyomino dot org dot uk> <000901d104e0$069f65b0$13de3110$ at com>
On Mon, 12 Oct 2015, Wilco Dijkstra wrote:
> So what is the magic to do a cross build for 32-bit? I can't find anything in
> the GLIBC documentation that gives the correct recipe to do this, and when I
> try to force it to use 32-bit using -m32 -arch=i686 I only get configure and
> build failures...
Assuming you have a compiler with working -m32 support (startup files etc.
installed), you should set CC and CXX to include -m32, and use
--host=i686-pc-linux-gnu when configuring. If you want to treat it as a
native build for testing purposes, --build=i686-pc-linux-gnu is a good
idea as well. This is in addition to usual configure options such as
--prefix=/usr --enable-add-ons.
--
Joseph S. Myers
joseph@codesourcery.com