Ticket #4524: 0001-buildsys-fix-build-on-macOS-with-libssh2-present-via.patch

File 0001-buildsys-fix-build-on-macOS-with-libssh2-present-via.patch, 836 bytes (added by zaytsev, 5 months ago)
  • src/Makefile.am

    From 0cf48ca4019b297ec6dfc927b4925a04ea059c78 Mon Sep 17 00:00:00 2001
    From: "Yury V. Zaytsev" <yury@shurup.com>
    Date: Thu, 30 May 2024 16:57:35 +0200
    Subject: [PATCH] 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>
    ---
     src/Makefile.am | 6 ++++++
     1 file changed, 6 insertions(+)
    
    diff --git a/src/Makefile.am b/src/Makefile.am
    index cca050cb8..1ed6e5b9d 100644
    a b SUBDIRS += consaver 
    2626AM_CPPFLAGS += -DSAVERDIR=\""$(pkglibexecdir)"\" 
    2727endif 
    2828 
     29if ENABLE_VFS 
     30if ENABLE_VFS_SFTP 
     31AM_CPPFLAGS += $(LIBSSH_CFLAGS) 
     32endif 
     33endif 
     34 
    2935AM_CPPFLAGS += -I$(top_srcdir) $(GLIB_CFLAGS) 
    3036 
    3137localedir = $(datadir)/locale