From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:33685) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QPizq-0000pw-LL for qemu-devel@nongnu.org; Thu, 26 May 2011 18:25:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QPizp-0001Ct-Gj for qemu-devel@nongnu.org; Thu, 26 May 2011 18:25:38 -0400 Received: from e33.co.us.ibm.com ([32.97.110.151]:43189) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QPizp-0001Cn-AL for qemu-devel@nongnu.org; Thu, 26 May 2011 18:25:37 -0400 Received: from d03relay03.boulder.ibm.com (d03relay03.boulder.ibm.com [9.17.195.228]) by e33.co.us.ibm.com (8.14.4/8.13.1) with ESMTP id p4QMIImE023658 for ; Thu, 26 May 2011 16:18:18 -0600 Received: from d03av06.boulder.ibm.com (d03av06.boulder.ibm.com [9.17.195.245]) by d03relay03.boulder.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p4QMPUhn159926 for ; Thu, 26 May 2011 16:25:30 -0600 Received: from d03av06.boulder.ibm.com (loopback [127.0.0.1]) by d03av06.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p4QMUe8l015428 for ; Thu, 26 May 2011 16:30:40 -0600 Message-ID: <4DDED354.9090009@linux.vnet.ibm.com> Date: Thu, 26 May 2011 18:25:24 -0400 From: Stefan Berger MIME-Version: 1.0 References: <4DDEA34C.4040304@linux.vnet.ibm.com> <4DDEB8B3.20807@linux.vnet.ibm.com> <7DC4629D-B668-48EB-B4A7-9DF571A478FC@web.de> In-Reply-To: <7DC4629D-B668-48EB-B4A7-9DF571A478FC@web.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH] host-pcc: enable building with -m32 or -m64 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?ISO-8859-1?Q?Andreas_F=E4rber?= Cc: qemu-devel@nongnu.org On 05/26/2011 05:24 PM, Andreas F=E4rber wrote: > Am 26.05.2011 um 22:31 schrieb Stefan Berger: > >> On 05/26/2011 04:20 PM, Andreas F=E4rber wrote: >>> Am 26.05.2011 um 21:00 schrieb Stefan Berger: >>> >>>> With the below patch I can build either ppc (-m32) or ppc64 (-m64)=20 >>>> versions of Qemu (on a ppc64 host) when passing these compiler=20 >>>> flags via 'configure ... --extra-cflags=3D"-m32"'. >>> >>> You probably meant "without passing"? >>> >>> Nack. Please don't hardcode -mXX in configure, it's -arch ppc vs.=20 >>> -arch ppc64 on my host/gcc. What's wrong with passing --extra-cflags? >>> >> I posted the following patch today for compiling libcacard with -m32=20 >> on a 64 bit machine. >> >> http://lists.nongnu.org/archive/html/qemu-devel/2011-05/msg02909.html >> >> It adds LDFLAGS. This works fine on x86-64. Then trying this out on=20 >> ppc64 with -m32 in extra-cflags I find the following in config-host.ma= k >> >> [...] >> HELPER_CFLAGS=3D >> LDFLAGS=3D-Wl,--warn-common -g >> ARLIBS_BEGIN=3D >> [...] >> >> The -m32 doesn't make it into LDFLAGS. The below patch fixed it for=20 >> me following the pattern of x86-64 and i686 a bit further up in the=20 >> case statement in configure. > > Erm, you did try --extra-ldflags for LDFLAGS, did you? That=20 > --extra-cflags doesn't end up there is intentional! > No, I didn't. Here's what happened. On x86_64 host I used to be able to=20 compile 32bit executables with --extra-cflags=3D"-m32". That stopped=20 working when libcacard showed up -- I posted a patch today -- only the=20 linking of vscclient in libcacard/ didn't work. The "work-around" before=20 the patch was --disable-smartcard. Now taking that same habit of passing=20 --extra-cflags=3D"-m32" to the ppc64 machine again didn't work, but was=20 broken somewhere else. So this is where this is all coming from. Stefan > Andreas