Skip to contentSkip to conversation

Linking problem: Makefile bug?

Qemu-devel zach etienne 1 participant 1 message May 31, 2004

lore
Share & tools
lore
#0 lore raw

Hello all.

I'd like to get qemu to compile with some SDL libraries installed in a nonstandard location on my machine. I think the problem lies in the fact that qemu-fast tries to link itself _statically_ (gcc -static) to various libraries on my system.

Here's the compile command+error message (note that /scratch/zetienne/bin//lib contains the SDL libraries, and libartsc.so/la/so.0 is installed in /usr/lib):
gcc -static -Wl,-T,/scratch/zetienne/qemu/i386-vl.ld -o qemu-fast vl.o osdep.o block.o monitor.o pci.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/scratch/zetienne/bin//lib -Wl,-rpath,/scratch/zetienne/bin//lib -lSDL -lpthread -lm -L/usr/lib -ldl -lartsc -lpthread -L/usr/lib -lesd -laudiofile -lm -L/usr/X11R6/lib -lX11 -lXext -ldl -lutil /usr/bin/ld: cannot find -lartsc
collect2: ld returned 1 exit status
make: *** [qemu-fast] Error 1

Any suggestions would be most welcome.
-Zach

http://w3.physics.uiuc.edu/~zetienne/

_________________________________________________________________
Stop worrying about overloading your inbox - get MSN Hotmail Extra Storage! http://join.msn.click-url.com/go/onm00200362ave/direct/01/