From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:36837) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RTItM-0000UA-5W for qemu-devel@nongnu.org; Wed, 23 Nov 2011 14:54:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RTItL-0006vS-1w for qemu-devel@nongnu.org; Wed, 23 Nov 2011 14:54:00 -0500 Received: from mail-bw0-f45.google.com ([209.85.214.45]:52614) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RTItK-0006vO-Ry for qemu-devel@nongnu.org; Wed, 23 Nov 2011 14:53:59 -0500 Received: by bkbzu5 with SMTP id zu5so2225998bkb.4 for ; Wed, 23 Nov 2011 11:53:57 -0800 (PST) From: Max Filippov Date: Wed, 23 Nov 2011 23:53:53 +0400 References: <4ECCEDFF.1000303@googlemail.com> <4ECD4E91.9060605@googlemail.com> In-Reply-To: <4ECD4E91.9060605@googlemail.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201111232353.53878.jcmvbkbc@gmail.com> Subject: Re: [Qemu-devel] cannot build qemu with "--static" configure option List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Peter Maydell , Mr Dash Four , Paolo Bonzini > > Do you have a static libgthread-2.0? (ie /usr/lib/libgthread-2.0.a or > > equivalent). > Nope, this is what I have: > > /usr/lib64/libgthread.so > /usr/lib64/libgthread-2.0.so > /usr/lib64/libgthread-1.2.so.0 > /usr/lib64/libgthread-1.2.so.0.0.10 > > *but*, just downloaded the source rpm and looked at the .spec file. It contains the following few lines in the %build section: > > %configure --disable-static > [...] > ## Unpackaged files > # info > %{__rm} -rf %{buildroot}%{_infodir} > # .la fies... die die die. > %{__rm} -rf %{buildroot}%{_libdir}/lib*.la > # despite use of --disable-static, delete static libs that get built anyway > %{__rm} -rf %{buildroot}%{_libdir}/lib*.a > > > So, somebody at Fedora doesn't like static (.a) files very much, it seems. I could easily correct this, enable static building and have these installed, I think. There's glib2-static in Fedora: $ rpm -ql glib2-static /usr/lib64/libgio-2.0.a /usr/lib64/libglib-2.0.a /usr/lib64/libgmodule-2.0.a /usr/lib64/libgobject-2.0.a /usr/lib64/libgthread-2.0.a Thanks. -- Max