From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 69152 invoked by alias); 12 Oct 2015 11:33:43 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 69137 invoked by uid 89); 12 Oct 2015 11:33:42 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: relay1.mentorg.com Date: Mon, 12 Oct 2015 11:33:00 -0000 From: Joseph Myers To: Wilco Dijkstra CC: 'GNU C Library' Subject: RE: [PATCH 2/2] Remove ancient GCC string inlines In-Reply-To: <000901d104e0$069f65b0$13de3110$@com> Message-ID: References: <000401d102aa$8db859e0$a9290da0$@com> <000801d102b1$3e4f33e0$baed9ba0$@com> <000901d104e0$069f65b0$13de3110$@com> User-Agent: Alpine 2.10 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" X-SW-Source: 2015-10/txt/msg00317.txt.bz2 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