File: 0004-PATCH-properly-detect-shm-on-kfreebsd-hurd.patch

package info (click to toggle)
c-icap 1%3A0.5.10-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 3,644 kB
  • sloc: ansic: 27,581; sh: 4,450; makefile: 242; perl: 95; awk: 10
file content (32 lines) | stat: -rw-r--r-- 927 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
From: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
Date: Tue, 15 Dec 2015 22:04:07 +0100
Subject: [PATCH] properly detect shm on kfreebsd / hurd

The rt could be the default. The thing with ac_try_compile is that passes
because we have the headers but linking fails due missing headers.
ac_try_link would be better but then we need to know the lib :)
This should work on kfreebsd and gnu hurd (which has currently gnu0.7
as target_os set).

Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
---
 configure.ac | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/configure.ac b/configure.ac
index adb1c3f..2144011 100644
--- a/configure.ac
+++ b/configure.ac
@@ -957,6 +957,12 @@ case "$host_os" in
      linux*)
         EXTRALIBS="$EXTRALIBS -lrt"
      ;;
+     kfreebsd*)
+        EXTRALIBS="$EXTRALIBS -lrt"
+     ;;
+     gnu*)
+        EXTRALIBS="$EXTRALIBS -lrt"
+     ;;
      *)
 esac
 fi