--- 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)