[libvirt] [PATCH] Don't link with -lrt on OpenBSD

Jasper Lievisse Adriaanse jasper at humppa.nl
Tue Sep 4 15:04:10 UTC 2012


>From bdf3bce37531ec346474bc5c4f37a5d2985d1d35 Mon Sep 17 00:00:00 2001
From: Jasper Lievisse Adriaanse <jasper at humppa.nl>
Date: Tue, 4 Sep 2012 17:03:43 +0200
Subject: [PATCH] Don't link with -lrt on OpenBSD

---
 configure.ac |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/configure.ac b/configure.ac
index e0d00d5..54d049d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -188,7 +188,13 @@ RT_LIBS=
 LIBS="$LIBS $LIB_PTHREAD -lrt"
 AC_CHECK_FUNC([clock_gettime],[
      AC_DEFINE([HAVE_CLOCK_GETTIME],[],[Defined if clock_gettime() exists in librt.so])
-     RT_LIBS=-lrt
+     case "$host" in
+       *-*-openbsd*)
+         ;;
+       *)
+         RT_LIBS=-lrt
+         ;;
+     esac
 ])
 LIBS=$old_libs
 AC_SUBST(RT_LIBS)
-- 
1.7.6


-- 
Cheers,
Jasper

"Stay Hungry. Stay Foolish"




More information about the libvir-list mailing list