From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1BAYm3-0008H9-Vn for qemu-devel@nongnu.org; Mon, 05 Apr 2004 14:24:43 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1BAYhe-0006D2-2t for qemu-devel@nongnu.org; Mon, 05 Apr 2004 14:20:41 -0400 Received: from [62.151.20.186] (helo=mx.larebelion.net) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BAYh6-0005p1-B8 for qemu-devel@nongnu.org; Mon, 05 Apr 2004 14:19:36 -0400 Received: from amavis by mx.larebelion.net with scanned-ok id 1BAYh4-0008LG-00 for qemu-devel@nongnu.org; Mon, 05 Apr 2004 20:19:34 +0200 Received: from [81.168.12.40] (helo=6-allhosts) by mx.larebelion.net with asmtp id 1BAYh4-0008L8-00 for qemu-devel@nongnu.org; Mon, 05 Apr 2004 20:19:34 +0200 Subject: Re: [Qemu-devel] Gentoo & qemu & non-static build From: Carlos Valiente In-Reply-To: <20040404202705.GA30876@jbrown.mylinuxbox.org> References: <20040404201119.GA2094@mail.com> <20040404202705.GA30876@jbrown.mylinuxbox.org> Content-Type: text/plain Message-Id: <1081189171.686.1.camel@rilke> Mime-Version: 1.0 Date: Mon, 05 Apr 2004 19:19:31 +0100 Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On Sun, 2004-04-04 at 21:27, Jim C. Brown wrote: > On Sun, Apr 04, 2004 at 10:11:19PM +0200, rutger@mail.com wrote: > > Hi, > > > > I cannot get qemu to build on Gentoo ~x86. Is has to do with the known > > problem that alsa-lib is not build staticly, and therefore libsdl.a > > cannot be linked to, and therefore qemu cannot be build staticly also. > > > > Output in that case: > > > > ... > > gcc -static -Wl,-T,/home/rutger/download/qemu-0.5.3/i386-vl.ld -o qemu-fast vl.o osdep.o block.o monitor.o ide.o ne2000.o pckbd.o vga.o sb16.o dma.o oss.o fdc.o mc146818rtc.o serial.o i8259.o i8254.o pc.o gdbstub.o sdl.o libqemu.a -lm -L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread -lm -ldl -lasound -L/usr/X11R6/lib -lX11 -lXext -laa -L/usr/lib -Wl,-rpath,/usr/lib -laa -lm -L/usr/X11R6/lib -lX11 -lncurses -lutil > > Try using this command instead: > > gcc -static -Wl,-T,/home/rutger/download/qemu-0.5.3/i386-vl.ld -o qemu-fast vl.o osdep.o block.o monitor.o ide.o ne2000.o pckbd.o vga.o sb16.o dma.o oss.o fdc.o mc146818rtc.o serial.o i8259.o i8254.o pc.o gdbstub.o sdl.o libqemu.a -shared -lm -L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread -lm -ldl -lasound -L/usr/X11R6/lib -lX11 -lXext -laa -L/usr/lib -Wl,-rpath,/usr/lib -laa -lm -L/usr/X11R6/lib -lX11 -lncurses -lutil > > [..] Doing a "gcc -shared [..]" ans then the rest as per the original gcc invocation worked for me, as well Carlos