Advertisement
internecto

Xen 4.2.0-rc3-pre patches for alpine Linux

Aug 10th, 2012
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 3.71 KB | None | 0 0
  1. diff --git /Makefile tools/qemu-xen-dir/Makefile
  2. index 301c75e..e2c3cd4 100644
  3. --- tools/qemu-xen-dir/Makefile
  4. +++ tools/qemu-xen-dir/Makefile
  5. @@ -34,7 +34,7 @@ configure: ;
  6.  
  7.  $(call set-vpath, $(SRC_PATH):$(SRC_PATH)/hw)
  8.  
  9. -LIBS+=-lz $(LIBS_TOOLS)
  10. +LIBS+=-lz -lm -lrt $(LIBS_TOOLS)
  11.  
  12.  ifdef BUILD_DOCS
  13.  DOCS=qemu-doc.html qemu-tech.html qemu.1 qemu-img.1 qemu-nbd.8
  14. QMP/qmp-commands.txt
  15. @@ -170,7 +170,7 @@ test-coroutine: test-coroutine.o qemu-timer-common.o
  16. async.o $(coroutine-obj-y)
  17.  $(qapi-obj-y): $(GENERATED_HEADERS)
  18.  qapi-dir := $(BUILD_DIR)/qapi-generated
  19.  test-visitor.o test-qmp-commands.o qemu-ga$(EXESUF): QEMU_CFLAGS += -I
  20. $(qapi-dir)
  21. -qemu-ga$(EXESUF): LIBS = $(LIBS_QGA)
  22. +qemu-ga$(EXESUF): LIBS = $(LIBS_QGA) -lm
  23.  
  24.  $(qapi-dir)/test-qapi-types.c $(qapi-dir)/test-qapi-types.h :\
  25.  $(SRC_PATH)/qapi-schema-test.json $(SRC_PATH)/scripts/qapi-types.py
  26. diff --git tools/qemu-xen-dir/Makefile.target tools/qemu-xen-dir/Makefile.target
  27. index a111521..95d6bc0 100644
  28. --- tools/qemu-xen-dir/Makefile.target
  29. +++ tools/qemu-xen-dir/Makefile.target
  30. @@ -33,6 +33,8 @@ endif
  31.  PROGS=$(QEMU_PROG)
  32.  STPFILES=
  33.  
  34. +LIBS+=-lrt -lm
  35. +
  36.  ifndef CONFIG_HAIKU
  37.  LIBS+=-lm
  38.  endif
  39. --- tools/qemu-xen-traditional-dir-remote/configure.old
  40. +++ tools/qemu-xen-traditional-dir-remote/configure
  41. @@ -1109,7 +1109,7 @@
  42.  
  43.  if test "$rt" = "yes" ; then
  44.    # Hack, we should have a general purpose LIBS for this sort of thing
  45. -  AIOLIBS="$AIOLIBS -lrt"
  46. +  AIOLIBS="$AIOLIBS -lrt -lm"
  47.  fi
  48.  
  49.  if test "$mingw32" = "yes" ; then
  50. @@ -1513,9 +1513,11 @@
  51.  
  52.  tools=
  53.  if test `expr "$target_list" : ".*softmmu.*"` != 0 ; then
  54. -  tools="qemu-img\$(EXESUF) $tools"
  55. +  #tools="qemu-img\$(EXESUF) $tools"
  56. +  :
  57.    if [ "$linux" = "yes" ] ; then
  58. -      tools="qemu-nbd\$(EXESUF) $tools"
  59. +      #tools="qemu-nbd\$(EXESUF) $tools"
  60. +      :
  61.    fi
  62.  fi
  63.  echo "TOOLS=$tools" >> $config_mak
  64. --- tools/qemu-xen-dir-remote/configure.old
  65. +++ tools/qemu-xen-dir-remote/configure
  66. @@ -2471,6 +2471,7 @@
  67.  elif compile_prog "" "-lrt" ; then
  68.    LIBS="-lrt $LIBS"
  69.  fi
  70. +LIBS="-lrt -lm $LIBS"
  71.  
  72.  if test "$darwin" != "yes" -a "$mingw32" != "yes" -a "$solaris" != yes -a \
  73.          "$aix" != "yes" -a "$haiku" != "yes" ; then
  74. @@ -2766,9 +2767,11 @@
  75.  if test "$softmmu" = yes ; then
  76.    tools="qemu-img\$(EXESUF) qemu-io\$(EXESUF) $tools"
  77.    if [ "$linux" = "yes" -o "$bsd" = "yes" -o "$solaris" = "yes" ] ; then
  78. -      tools="qemu-nbd\$(EXESUF) $tools"
  79. +      #tools="qemu-nbd\$(EXESUF) $tools"
  80. +      :
  81.      if [ "$guest_agent" = "yes" ]; then
  82. -      tools="qemu-ga\$(EXESUF) $tools"
  83. +      #tools="qemu-ga\$(EXESUF) $tools"
  84. +      :
  85.      fi
  86.      if [ "$check_utests" = "yes" ]; then
  87.        checks="check-qint check-qstring check-qdict check-qlist"
  88. --- ./tools/qemu-xen-dir-remote/Makefile
  89. +++ ./tools/qemu-xen-dir-remote/Makefile
  90. @@ -34,7 +34,7 @@
  91.  
  92.  $(call set-vpath, $(SRC_PATH):$(SRC_PATH)/hw)
  93.  
  94. -LIBS+=-lz -lm -lrt $(LIBS_TOOLS)
  95. +LIBS+=-lz -lrt -lm $(LIBS_TOOLS)
  96.  
  97.  ifdef BUILD_DOCS
  98.  DOCS=qemu-doc.html qemu-tech.html qemu.1 qemu-img.1 qemu-nbd.8 QMP/qmp-commands.txt
  99. @@ -170,7 +170,7 @@
  100.  $(qapi-obj-y): $(GENERATED_HEADERS)
  101.  qapi-dir := $(BUILD_DIR)/qapi-generated
  102.  test-visitor.o test-qmp-commands.o qemu-ga$(EXESUF): QEMU_CFLAGS += -I $(qapi-dir)
  103. -qemu-ga$(EXESUF): LIBS = $(LIBS_QGA)
  104. +qemu-ga$(EXESUF): LIBS = $(LIBS_QGA) -lrt -lm
  105.  
  106.  $(qapi-dir)/test-qapi-types.c $(qapi-dir)/test-qapi-types.h :\
  107.  $(SRC_PATH)/qapi-schema-test.json $(SRC_PATH)/scripts/qapi-types.py
  108. --- tools/qemu-xen-traditional-dir-remote/Makefile.target.orig
  109. +++ tools/qemu-xen-traditional-dir-remote/Makefile.target
  110. @@ -520,7 +520,7 @@
  111.  OBJS+=block-raw-posix.o
  112.  endif
  113.  
  114. -LIBS+=-lz
  115. +LIBS+=-lz -lrt -lm
  116.  ifdef CONFIG_ALSA
  117.  LIBS += -lasound
  118.  endif
  119. --
  120. 1.7.9
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement