From patchwork Wed Apr 18 02:18:47 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kenneth Salerno X-Patchwork-Id: 153367 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id A871FB70A8 for ; Wed, 18 Apr 2012 12:31:01 +1000 (EST) Received: from localhost ([::1]:33947 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SKKfa-0005UH-Pd for incoming@patchwork.ozlabs.org; Tue, 17 Apr 2012 22:30:58 -0400 Received: from eggs.gnu.org ([208.118.235.92]:55672) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SKKfM-0005Ja-FT for qemu-devel@nongnu.org; Tue, 17 Apr 2012 22:30:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SKKfF-00014z-CE for qemu-devel@nongnu.org; Tue, 17 Apr 2012 22:30:44 -0400 Received: from indium.canonical.com ([91.189.90.7]:54737) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SKKfF-000142-5O for qemu-devel@nongnu.org; Tue, 17 Apr 2012 22:30:37 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1SKKfD-0000lU-Np for ; Wed, 18 Apr 2012 02:30:35 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id A30EC2E807B for ; Wed, 18 Apr 2012 02:30:35 +0000 (UTC) MIME-Version: 1.0 Date: Wed, 18 Apr 2012 02:18:47 -0000 From: Kenneth Salerno To: qemu-devel@nongnu.org X-Launchpad-Bug: product=qemu; status=New; importance=Undecided; assignee=None; X-Launchpad-Bug-Tags: sdl static X-Launchpad-Bug-Private: no X-Launchpad-Bug-Security-Vulnerability: no X-Launchpad-Bug-Commenters: kennethsalerno X-Launchpad-Bug-Reporter: Kenneth Salerno (kennethsalerno) X-Launchpad-Bug-Modifier: Kenneth Salerno (kennethsalerno) References: <20120418021847.6939.88224.malonedeb@chaenomeles.canonical.com> Message-Id: <20120418021847.6939.88224.malonedeb@chaenomeles.canonical.com> X-Launchpad-Message-Rationale: Subscriber (QEMU) @qemu-devel-ml Precedence: bulk X-Generated-By: Launchpad (canonical.com); Revision="15108"; Instance="launchpad-lazr.conf" X-Launchpad-Hash: 10ded609692a678c017bfadcac7bbe2c14f537cc X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 91.189.90.7 Subject: [Qemu-devel] [Bug 984516] [NEW] should use sdl-config for static build not pkg-config X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Reply-To: Bug 984516 <984516@bugs.launchpad.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Public bug reported: In the configure script when a user wants to compile a static QEMU and enable SDL support (i.e. ./configure --static --enable-sdl): pkg-config does not have an option "--static-libs". For correct results (to find the static archive libSDL.a) you need to use sdl-config --static-libs. This is how I get it to work for me anyway: ** Affects: qemu Importance: Undecided Status: New ** Tags: sdl static diff --git a/configure b/configure index 2d62d12..3de4c9b 100755 --- a/configure +++ b/configure @@ -1548,7 +1548,7 @@ int main( void ) { return SDL_Init (SDL_INIT_VIDEO); } EOF sdl_cflags=`$sdlconfig --cflags 2> /dev/null` if test "$static" = "yes" ; then - sdl_libs=`$sdlconfig --static-libs 2>/dev/null` + sdl_libs=`${SDL_CONFIG-${cross_prefix}sdl-config} --static-libs` else sdl_libs=`$sdlconfig --libs 2> /dev/null` fi