Browse Source

buildsys: fix build on macOS with libssh2 present via homebrew

Path to libssh2 headers was missing from CPPFLAGS resulting into FTBFS.

Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Yury V. Zaytsev 9 months ago
parent
commit
b76569d5ee
1 changed files with 7 additions and 0 deletions
  1. 7 0
      src/Makefile.am

+ 7 - 0
src/Makefile.am

@@ -26,6 +26,13 @@ SUBDIRS += consaver
 AM_CPPFLAGS += -DSAVERDIR=\""$(pkglibexecdir)"\"
 endif
 
+# required for textconf.c
+if ENABLE_VFS
+if ENABLE_VFS_SFTP
+AM_CPPFLAGS += $(LIBSSH_CFLAGS)
+endif
+endif
+
 AM_CPPFLAGS += -I$(top_srcdir) $(GLIB_CFLAGS)
 
 localedir = $(datadir)/locale