Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NePLI-0001zH-FT for qemu-devel@nongnu.org; Mon, 08 Feb 2010 03:51:40 -0500 Received: from [199.232.76.173] (port=33921 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NePLH-0001y0-TE for qemu-devel@nongnu.org; Mon, 08 Feb 2010 03:51:39 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NePLC-0001si-LP for qemu-devel@nongnu.org; Mon, 08 Feb 2010 03:51:39 -0500 Received: from duck.dooz.org ([194.146.227.125]:41945) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NePLB-0001sW-Po for qemu-devel@nongnu.org; Mon, 08 Feb 2010 03:51:34 -0500 Received: from bee.dooz.org (serris.dooz.org [88.166.229.232]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by duck.dooz.org (Postfix) with ESMTP id 7D6ADC809C for ; Mon, 8 Feb 2010 09:51:31 +0100 (CET) Date: Mon, 8 Feb 2010 09:51:30 +0100 From: =?iso-8859-1?Q?Lo=EFc?= Minier Subject: Re: [Qemu-devel] [PATCH] fix the static compilation for sdl Message-ID: <20100208085130.GA8592@bee.dooz.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: Content-Transfer-Encoding: quoted-printable List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On Mon, Feb 08, 2010, TeLeMan wrote: > The static compilation for sdl is broken after > 79427693174a553d62f3da44aacd3f19ba8df3a7. >=20 > Signed-off-by: TeLeMan > --- > configure | 7 +++++-- > 1 files changed, 5 insertions(+), 2 deletions(-) >=20 > diff --git a/configure b/configure > index 4c95c27..213dddf 100644 > --- a/configure > +++ b/configure > @@ -1063,7 +1063,11 @@ if test "$sdl" !=3D "no" ; then > int main( void ) { return SDL_Init (SDL_INIT_VIDEO); } > EOF > sdl_cflags=3D`$sdlconfig --cflags 2> /dev/null` > - sdl_libs=3D`$sdlconfig --libs 2> /dev/null` > + if test "$static" =3D "yes" ; then > + sdl_libs=3D`sdl-config --static-libs 2>/dev/null` > + else > + sdl_libs=3D`$sdlconfig --libs 2> /dev/null` > + fi > if compile_prog "$sdl_cflags" "$sdl_libs" ; then > if test "$_sdlversion" -lt 121 ; then > sdl_too_old=3Dyes > @@ -1075,7 +1079,6 @@ EOF >=20 > # static link with sdl ? (note: sdl.pc's --static --libs is broken= ) > if test "$sdl" =3D "yes" -a "$static" =3D "yes" ; then > - sdl_libs=3D`sdl-config --static-libs 2>/dev/null` > if test $? =3D 0 && echo $sdl_libs | grep -- -laa > /dev/null; t= hen > sdl_libs=3D"$sdl_libs `aalib-config --static-libs >2 /dev/nul= l`" > sdl_cflags=3D"$sdl_cflags `aalib-config --cflags >2 /dev/null= `" Signed-off-by: Lo=EFc Minier Ah right, the tests were being run on a shared libsdl no matter actual linking would happen against the static or shared libsdl; thanks for fixing the ordering. --=20 Lo=EFc Minier