aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/qemu/qemu-1.2.0/linker-flags-2.patch
blob: ba50c8d5d2e6e7135db091323c8a2a3bbb435b7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
diff -urN qemu-1.2.0.orig/Makefile qemu-1.2.0/Makefile
--- qemu-1.2.0.orig/Makefile	2012-09-05 10:03:06.000000000 -0400
+++ qemu-1.2.0/Makefile	2013-05-07 12:18:23.638560591 -0400
@@ -172,7 +172,7 @@
 qemu-img-cmds.h: $(SRC_PATH)/qemu-img-cmds.hx
 	$(call quiet-command,sh $(SRC_PATH)/scripts/hxtool -h < $< > $@,"  GEN   $@")
 
-qemu-ga$(EXESUF): LIBS = $(LIBS_QGA)
+qemu-ga$(EXESUF): LIBS = $(LIBS_QGA) -lrt
 qemu-ga$(EXESUF): QEMU_CFLAGS += -I qga/qapi-generated
 
 gen-out-type = $(subst .,-,$(suffix $@))
diff -urN qemu-1.2.0.orig/configure qemu-1.2.0/configure
--- qemu-1.2.0.orig/configure	2012-09-05 10:03:06.000000000 -0400
+++ qemu-1.2.0/configure	2013-05-07 12:11:06.940307455 -0400
@@ -2681,6 +2681,10 @@
   LIBS="-lrt $LIBS"
 fi
 
+if test "$linux" = "yes" ; then
+  LIBS="-lrt $LIBS"
+fi
+
 if test "$darwin" != "yes" -a "$mingw32" != "yes" -a "$solaris" != yes -a \
         "$aix" != "yes" -a "$haiku" != "yes" ; then
     libs_softmmu="-lutil $libs_softmmu"