From 01a588361686a2eee40018cdbb6f47051542e5bc Mon Sep 17 00:00:00 2001 From: Joshua Lock Date: Tue, 15 Jun 2010 12:22:01 +0100 Subject: qemu: Fix linking of the native package on Fedora 13 Fedora 13 switched the default behaviour of the linker to no longer indirectly link to required libraries (i.e. dependencies of a library already linked to). Therefore we need to explicitly pass the depended on libraries into the linker for building to work on Fedora 13. Signed-off-by: Joshua Lock --- meta/packages/qemu/qemu-0.12.4/linker-flags.patch | 22 ++++++++++++++++++++++ meta/packages/qemu/qemu.inc | 2 +- meta/packages/qemu/qemu_0.12.4.bb | 15 ++++++++------- meta/packages/qemu/qemu_git.bb | 15 ++++++++------- 4 files changed, 39 insertions(+), 15 deletions(-) create mode 100644 meta/packages/qemu/qemu-0.12.4/linker-flags.patch (limited to 'meta') diff --git a/meta/packages/qemu/qemu-0.12.4/linker-flags.patch b/meta/packages/qemu/qemu-0.12.4/linker-flags.patch new file mode 100644 index 0000000000..7b33aa4840 --- /dev/null +++ b/meta/packages/qemu/qemu-0.12.4/linker-flags.patch @@ -0,0 +1,22 @@ +Fedora 13 switched the default behaviour of the linker to no longer +indirectly link to required libraries (i.e. dependencies of a library +already linked to). Therefore we need to explicitly pass the depended on +libraries into the linker for building to work on Fedora 13. + +More information is available on the Fedora Wiki: +https://fedoraproject.org/wiki/UnderstandingDSOLinkChange + +JL - 15/06/10 +Index: qemu-0.12.4/Makefile.target +=================================================================== +--- qemu-0.12.4.orig/Makefile.target 2010-06-15 11:21:52.000000000 +0100 ++++ qemu-0.12.4/Makefile.target 2010-06-15 11:25:27.212852910 +0100 +@@ -178,7 +178,7 @@ + obj-y += virtio-blk.o virtio-balloon.o virtio-net.o virtio-console.o virtio-pci.o + obj-$(CONFIG_KVM) += kvm.o kvm-all.o + obj-$(CONFIG_ISA_MMIO) += isa_mmio.o +-LIBS+=-lz ++LIBS+=-lz -lX11 -ldl + + sound-obj-y = + sound-obj-$(CONFIG_SB16) += sb16.o diff --git a/meta/packages/qemu/qemu.inc b/meta/packages/qemu/qemu.inc index 0a0de2cc4c..c744990d0f 100644 --- a/meta/packages/qemu/qemu.inc +++ b/meta/packages/qemu/qemu.inc @@ -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-ldflags=-ldl" +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 += "--disable-sdl" inherit autotools diff --git a/meta/packages/qemu/qemu_0.12.4.bb b/meta/packages/qemu/qemu_0.12.4.bb index 43a40c2a27..79b73d38ad 100644 --- a/meta/packages/qemu/qemu_0.12.4.bb +++ b/meta/packages/qemu/qemu_0.12.4.bb @@ -1,17 +1,18 @@ require qemu.inc -PR = "r13" +PR = "r14" FILESPATH = "${FILE_DIRNAME}/qemu-${PV}" FILESDIR = "${WORKDIR}" SRC_URI = "\ http://download.savannah.gnu.org/releases/qemu/qemu-${PV}.tar.gz \ - file://workaround_bad_futex_headers.patch;patch=1 \ - file://qemu-git-qemugl-host.patch;patch=1 \ - file://no-strip.patch;patch=1 \ - file://fix-dirent.patch;patch=1 \ - file://fix-nogl.patch;patch=1 \ - file://qemugl-allow-glxcontext-release.patch;patch=1" + file://workaround_bad_futex_headers.patch \ + file://qemu-git-qemugl-host.patch \ + file://no-strip.patch \ + file://fix-dirent.patch \ + file://fix-nogl.patch \ + file://qemugl-allow-glxcontext-release.patch \ + file://linker-flags.patch" S = "${WORKDIR}/qemu-${PV}" diff --git a/meta/packages/qemu/qemu_git.bb b/meta/packages/qemu/qemu_git.bb index 8f39f5b6f8..b1468704ac 100644 --- a/meta/packages/qemu/qemu_git.bb +++ b/meta/packages/qemu/qemu_git.bb @@ -1,19 +1,20 @@ require qemu.inc PV = "0.12.4" -PR = "r7" +PR = "r8" FILESPATH = "${FILE_DIRNAME}/qemu-${PV}/:${FILE_DIRNAME}/qemu-git/" FILESDIR = "${WORKDIR}" SRC_URI = "\ git://git.sv.gnu.org/qemu.git;protocol=git \ - file://workaround_bad_futex_headers.patch;patch=1 \ - file://qemu-git-qemugl-host.patch;patch=1 \ - file://no-strip.patch;patch=1 \ - file://fix-dirent.patch;patch=1 \ - file://fix-nogl.patch;patch=1 \ - file://qemugl-allow-glxcontext-release.patch;patch=1" + file://workaround_bad_futex_headers.patch \ + file://qemu-git-qemugl-host.patch \ + file://no-strip.patch \ + file://fix-dirent.patch \ + file://fix-nogl.patch \ + file://qemugl-allow-glxcontext-release.patch \ + file://linker-flags.patch" S = "${WORKDIR}/git" -- cgit v1.2.3-54-g00ecf