This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: [PATCH 2/2] Remove ancient GCC string inlines


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]