[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] Gentoo & qemu & non-static build
From: |
Carlos Valiente |
Subject: |
Re: [Qemu-devel] Gentoo & qemu & non-static build |
Date: |
Mon, 05 Apr 2004 19:19:31 +0100 |
On Sun, 2004-04-04 at 21:27, Jim C. Brown wrote:
> On Sun, Apr 04, 2004 at 10:11:19PM +0200, address@hidden 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