SHA256
1
0
forked from pool/kexec-tools
kexec-tools/kexec-tools-xen-static.diff
Petr Tesařík 62134d33a6 Accepting request 20658 from home:dl9pf:branches:openSUSE:Factory
Copy from home:dl9pf:branches:openSUSE:Factory/kexec-tools via accept of submit request 20658 revision 2.

OBS-URL: https://build.opensuse.org/request/show/20658
OBS-URL: https://build.opensuse.org/package/show/Kernel:kdump/kexec-tools?expand=0&rev=4
2009-10-09 15:36:18 +00:00

26 lines
687 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>
---
configure.ac | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
--- a/configure.ac
+++ b/configure.ac
@@ -128,7 +128,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