kexec-tools/kexec-tools-xen-static.diff
OBS User autobuild 5cc762cce4 Accepting request 48559 from Kernel:kdump
Copy from Kernel:kdump/kexec-tools based on submit request 48559 from user ptesarik

OBS-URL: https://build.opensuse.org/request/show/48559
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/kexec-tools?expand=0&rev=78
2010-09-21 10:21:43 +00:00

25 lines
833 B
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>
================================================================================
Index: kexec-tools-2.0.2/configure.ac
===================================================================
--- kexec-tools-2.0.2.orig/configure.ac
+++ kexec-tools-2.0.2/configure.ac
@@ -155,7 +155,8 @@ fi
dnl find Xen control stack libraries
if test "$with_xen" = yes ; then
AC_CHECK_HEADER(xenctrl.h,
- AC_CHECK_LIB(xenctrl, xc_version, ,
+ AC_CHECK_LIB(xenctrl, xc_version,
+ [[LIBS="$LIBS -Wl,-Bstatic -lxenctrl -Wl,-Bdynamic"]],
AC_MSG_NOTICE([Xen support disabled])))
fi