summaryrefslogtreecommitdiff
path: root/net/unison/files/patch-Makefile.OCaml
blob: a215227ad1cc49545b4537aca69acbd6d1f8719b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- Makefile.OCaml.orig	2024-02-18 15:03:04 UTC
+++ Makefile.OCaml
@@ -336,15 +336,9 @@ ifneq ($(findstring $(OSARCH),FreeBSD OpenBSD NetBSD D
 ifneq ($(findstring $(OSARCH),FreeBSD OpenBSD NetBSD DragonFly),)
   LIBINOTIFY_LIB:=-cclib '$(shell pkg-config --libs libinotify 2> /dev/null || printf ' -linotify')'
   LIBINOTIFY_INC:=-ccopt '$(shell pkg-config --cflags libinotify 2> /dev/null)'
-  FOUND_LIBINOTIFY := $(shell { printf '' > inotifytest__.ml ;\
-    $(CAMLC) $(CAMLCFLAGS) $(CAMLLDFLAGS) $(LIBINOTIFY_LIB) \
-      -o inotifytest__ inotifytest__.ml > /dev/null 2>&1 && printf true ; } ;\
-    rm -f inotifytest__.ml inotifytest__.cm[oix] inotifytest__.o inotifytest__ > /dev/null 2>&1)
-  ifeq ($(FOUND_LIBINOTIFY), true)
-    FSMDIR = fsmonitor/inotify
-    $(NAME_FSM)$(EXEC_EXT): CAMLCFLAGS += $(LIBINOTIFY_INC)
-    $(NAME_FSM)$(EXEC_EXT): CLIBS += $(LIBINOTIFY_LIB)
-  endif
+  FSMDIR = fsmonitor/inotify
+  $(NAME_FSM)$(EXEC_EXT): CAMLCFLAGS += $(LIBINOTIFY_INC)
+  $(NAME_FSM)$(EXEC_EXT): CLIBS += $(LIBINOTIFY_LIB)
 endif
 
 ifeq ($(OSARCH),SunOS)