Changeset View
Changeset View
Standalone View
Standalone View
net/unison/files/patch-fsmonitor_linux_Makefile
--- fsmonitor/linux/Makefile.orig 2017-03-23 16:47:46 UTC | --- fsmonitor/linux/Makefile.orig 2017-03-23 16:47:46 UTC | ||||
+++ fsmonitor/linux/Makefile | +++ fsmonitor/linux/Makefile | ||||
@@ -18,6 +18,10 @@ else | @@ -18,6 +18,11 @@ else | ||||
FSMCAMLLIBS=$(FSMOCAMLLIBS) | FSMCAMLLIBS=$(FSMOCAMLLIBS) | ||||
endif | endif | ||||
+ifeq ($(OSARCH),FreeBSD) | +ifeq ($(OSARCH),FreeBSD) | ||||
+ CLIBS+=-cclib -linotify | + COFLAGS+=$(foreach v, $(shell pkg-config --cflags libinotify 2>/dev/null), -ccopt $v) | ||||
+ CLIBS+=$(foreach v, $(shell pkg-config --libs libinotify 2>/dev/null), -cclib $v) | |||||
+endif | +endif | ||||
+ | + | ||||
buildexecutable:: $(FSMONITOR)$(EXEC_EXT) | buildexecutable:: $(FSMONITOR)$(EXEC_EXT) | ||||
$(FSMONITOR)$(EXEC_EXT): $(FSMCAMLOBJS) $(FSMCOBJS) | $(FSMONITOR)$(EXEC_EXT): $(FSMCAMLOBJS) $(FSMCOBJS) | ||||
@@ -26,4 +30,4 @@ $(FSMONITOR)$(EXEC_EXT): $(FSMCAMLOBJS) $(FSMCOBJS) | |||||
clean:: | |||||
rm -f $(DIR)/*.cm[iox] $(DIR)/*.o $(DIR)/*~ | |||||
- rm -f $(FSMONITOR)$(EXEC_EXT) | |||||
\ No newline at end of file | |||||
+ rm -f $(FSMONITOR)$(EXEC_EXT) |