From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56158) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZxF9y-0004iO-2G for qemu-devel@nongnu.org; Fri, 13 Nov 2015 09:17:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZxF9u-00014N-9L for qemu-devel@nongnu.org; Fri, 13 Nov 2015 09:17:01 -0500 Received: from mx1.redhat.com ([209.132.183.28]:51393) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZxF9u-00014B-4V for qemu-devel@nongnu.org; Fri, 13 Nov 2015 09:16:58 -0500 Date: Fri, 13 Nov 2015 14:16:53 +0000 From: "Daniel P. Berrange" Message-ID: <20151113141653.GE29459@redhat.com> References: <1447414307-5295-1-git-send-email-berrange@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] [PATCH v2] configure: sanity check the glib library that pkg-config finds Reply-To: "Daniel P. Berrange" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Paolo Bonzini , QEMU Developers , "Dr. David Alan Gilbert" On Fri, Nov 13, 2015 at 01:01:52PM +0000, Peter Maydell wrote: > On 13 November 2015 at 11:31, Daniel P. Berrange wrote: > > Developers on 64-bit machines will often try to perform a > > 32-bit build of QEMU by running > > > > ./configure --extra-cflags="-m32" > > > > Unfortunately if PKG_CONFIG_LIBDIR is not set to point to > > the location of the 32-bit pkg-config files, then configure > > will silently pick up the 64-bit pkg-config files and still > > succeed. > > Will this also handle all the other -config programs that > seem to have sprouted up? Looking in configure we also call > sdl-config > sdl2-config > libgcrypt-config > aalib-config > curl-config For custom non-pkg-config programs there's not any good general purpose solution for them to look for 32-bit versions while on 64-bit hosts, at least not when 32-bit and 64-bit are both installed into the same /usr prefix. If the 32-bit stuff is installed in a completely separate root prefix, then you can sometimes update $PATH to ensure the right -config binary is found. This is a good reason why libs are encouraged to switch to using pkg-config instead of home-grown alternatives Regards, Daniel -- |: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|