summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/qemu/qemu-0.13.0/linker-flags.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/qemu/qemu-0.13.0/linker-flags.patch')
-rw-r--r--meta/recipes-devtools/qemu/qemu-0.13.0/linker-flags.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/meta/recipes-devtools/qemu/qemu-0.13.0/linker-flags.patch b/meta/recipes-devtools/qemu/qemu-0.13.0/linker-flags.patch
new file mode 100644
index 0000000000..54c480f94b
--- /dev/null
+++ b/meta/recipes-devtools/qemu/qemu-0.13.0/linker-flags.patch
@@ -0,0 +1,22 @@
1Fedora 13 switched the default behaviour of the linker to no longer
2indirectly link to required libraries (i.e. dependencies of a library
3already linked to). Therefore we need to explicitly pass the depended on
4libraries into the linker for building to work on Fedora 13.
5
6More information is available on the Fedora Wiki:
7https://fedoraproject.org/wiki/UnderstandingDSOLinkChange
8
9JL - 15/06/10
10Index: qemu-0.13.0/Makefile.target
11===================================================================
12--- qemu-0.13.0.orig/Makefile.target 2011-01-15 17:30:45.000000000 +0800
13+++ qemu-0.13.0/Makefile.target 2011-01-15 17:33:22.000000000 +0800
14@@ -193,7 +193,7 @@
15 obj-y += rwhandler.o
16 obj-$(CONFIG_KVM) += kvm.o kvm-all.o
17 obj-$(CONFIG_NO_KVM) += kvm-stub.o
18-LIBS+=-lz
19+LIBS+=-lz -lX11 -ldl
20
21 QEMU_CFLAGS += $(VNC_TLS_CFLAGS)
22 QEMU_CFLAGS += $(VNC_SASL_CFLAGS)