]> code.ossystems Code Review - openembedded-core.git/commitdiff
qemu: add some extra ldflags to make it link succesfully
authorJoshua Lock <josh@linux.intel.com>
Fri, 28 May 2010 09:28:32 +0000 (10:28 +0100)
committerJoshua Lock <josh@linux.intel.com>
Fri, 28 May 2010 14:32:42 +0000 (15:32 +0100)
qemu-native was failing to link on my 64bit Fedora 13 machine with this error:

| /usr/bin/ld: libqemu.a(helper_opengl.o): undefined reference to symbol 'dlsym@@GLIBC_2.2.5'
| /usr/bin/ld: note: 'dlsym@@GLIBC_2.2.5' is defined in DSO /lib64/libdl.so.2 so try adding it to the linker command line
| /lib64/libdl.so.2: could not read symbols: Invalid operation

So I did as the linker told me and added -ldl to the linker flags

Signed-off-by: Joshua Lock <josh@linux.intel.com>
meta/packages/qemu/qemu.inc

index eb630670cf1d7632653f0947199ae186664eb611..c607d00e829973d99a4f46a0376fb614affaf5a0 100644 (file)
@@ -3,7 +3,7 @@ HOMEPAGE = "http://qemu.org"
 LICENSE = "GPL"
 DEPENDS = "zlib"
 
-EXTRA_OECONF = "--target-list=arm-linux-user,arm-softmmu,i386-softmmu,x86_64-softmmu,mips-linux-user,mips-softmmu --disable-werror --disable-vnc-tls"
+EXTRA_OECONF = "--target-list=arm-linux-user,arm-softmmu,i386-softmmu,x86_64-softmmu,mips-linux-user,mips-softmmu --disable-werror --disable-vnc-tls --extra-ldflags=-ldl"
 #EXTRA_OECONF += "--disable-sdl"
 
 inherit autotools