From 53dd8369aeace02fcb9da3b189c0bb6fb178f3bc Mon Sep 17 00:00:00 2001
From: "Dmitry E. Oboukhov" <unera@debian.org>
Date: Mon, 16 Jan 2012 16:53:42 +0400
Subject: [PATCH] try to build for debian/kfreebsd

---
 core/CMakeLists.txt                         |  2 +-
 debian/patches/debian-kfreebsd-link-options | 11 +++++++++++
 debian/patches/series                       |  1 +
 3 files changed, 13 insertions(+), 1 deletion(-)
 create mode 100644 debian/patches/debian-kfreebsd-link-options
 create mode 100644 debian/patches/series

diff --git a/core/CMakeLists.txt b/core/CMakeLists.txt
index 49c990d187..8477f5e17d 100644
--- a/core/CMakeLists.txt
+++ b/core/CMakeLists.txt
@@ -22,7 +22,7 @@ endif()
 #
 # libev uses ceil and floor from the standard math library
 #
-target_link_libraries(ev m)
+target_link_libraries(ev m rt)
 
 #
 # Build admin.m from admin.rl, but only if admin.rl was changed.
diff --git a/debian/patches/debian-kfreebsd-link-options b/debian/patches/debian-kfreebsd-link-options
new file mode 100644
index 0000000000..771994e70d
--- /dev/null
+++ b/debian/patches/debian-kfreebsd-link-options
@@ -0,0 +1,11 @@
+--- tarantool-1.4.4+20120116.orig/core/CMakeLists.txt
++++ tarantool-1.4.4+20120116/core/CMakeLists.txt
+@@ -22,7 +22,7 @@ endif()
+ #
+ # libev uses ceil and floor from the standard math library
+ #
+-target_link_libraries(ev m)
++target_link_libraries(ev m rt)
+ 
+ #
+ # Build admin.m from admin.rl, but only if admin.rl was changed.
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000000..c2a6f41754
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+debian-kfreebsd-link-options
-- 
GitLab