cf62e2066a
- Update to version 2.0.12 (FATE#320915, bsc#980545) Changelog: http://git.kernel.org/cgit/utils/kernel/kexec/kexec-tools.git/log/?id=refs/tags/v2.0.10..v2.0.12 Drop following patches (upstream): kexec-tools-load-crash-kernel-high.patch - Fix pkg-config to check >= 4.7 rather than > 4.6 for xenlight - Specifically name Files in specfile rather than using glob. OBS-URL: https://build.opensuse.org/request/show/401235 OBS-URL: https://build.opensuse.org/package/show/Kernel:kdump/kexec-tools?expand=0&rev=71
36 lines
1.2 KiB
Diff
36 lines
1.2 KiB
Diff
From: Bernhard Walle <bwalle@suse.de>
|
|
Subject: [PATCH] Link xenctrl statically
|
|
|
|
This patch just links the xenctrl library statically. That allows
|
|
to use Xen support without a runtime dependency to the Xen package.
|
|
|
|
|
|
Signed-off-by: Bernhard Walle <bwalle@suse.de>
|
|
|
|
================================================================================
|
|
---
|
|
configure.ac | 10 +++++++++-
|
|
1 file changed, 9 insertions(+), 1 deletion(-)
|
|
|
|
--- a/configure.ac
|
|
+++ b/configure.ac
|
|
@@ -163,9 +163,17 @@ fi
|
|
|
|
dnl find Xen control stack libraries
|
|
if test "$with_xen" = yes ; then
|
|
+ if pkg-config --exists 'xenlight >= 4.7' ; then
|
|
AC_CHECK_HEADER(xenctrl.h,
|
|
- [AC_CHECK_LIB(xenctrl, xc_kexec_load, ,
|
|
+ [AC_CHECK_LIB(xenctrl, xc_kexec_load,
|
|
+ [AC_DEFINE([HAVE_LIBXENCTRL], [1], [libxenctrl]) [LIBS="-Wl,-Bstatic -lxenctrl -lxencall -lxentoollog -lxenforeignmemory -Wl,-Bdynamic -lpthread -ldl $LIBS"]],
|
|
AC_MSG_NOTICE([Xen support disabled]))])
|
|
+ else
|
|
+ AC_CHECK_HEADER(xenctrl.h,
|
|
+ [AC_CHECK_LIB(xenctrl, xc_kexec_load,
|
|
+ [AC_DEFINE([HAVE_LIBXENCTRL], [1], [libxenctrl]) [LIBS="-Wl,-Bstatic -lxenctrl -Wl,-Bdynamic -lpthread -ldl $LIBS"]],
|
|
+ AC_MSG_NOTICE([Xen support disabled]))])
|
|
+ fi
|
|
fi
|
|
|
|
dnl ---Sanity checks
|