Ticket #4493: 4493_ext2fs_cppflags.patch

File 4493_ext2fs_cppflags.patch, 1.0 KB (added by andrew_b, 11 months ago)
  • m4.include/mc-ext2fs-attr.m4

    diff --git a/m4.include/mc-ext2fs-attr.m4 b/m4.include/mc-ext2fs-attr.m4
    index 6a57cd5ef..42e4a292e 100644
    a b AC_DEFUN([mc_EXT2FS_ATTR], 
    1212 
    1313        if test x"$found_e2p" = "xyes"; then 
    1414            AC_DEFINE(ENABLE_EXT2FS_ATTR, 1, [Define to enable support for ext2fs attributes]) 
    15             AC_SUBST(EXT2FS_CFLAGS) 
    16             AC_SUBST(E2P_CFLAGS) 
    1715            MCLIBS="$MCLIBS $E2P_LIBS" 
     16            CPPFLAGS="$CPPFLAGS $EXT2FS_CFLAGS $E2P_CFLAGS" 
    1817            ext2fs_attr_msg="yes" 
    1918        else 
    2019            AC_MSG_WARN([e2p library not found or version too old (must be >= 1.42.4)]) 
  • src/filemanager/Makefile.am

    diff --git a/src/filemanager/Makefile.am b/src/filemanager/Makefile.am
    index 534d8dcf3..0b3c36556 100644
    a b AM_CPPFLAGS = -I$(top_srcdir) $(GLIB_CFLAGS) 
    3535if ENABLE_EXT2FS_ATTR 
    3636libmcfilemanager_la_SOURCES += \ 
    3737        chattr.c 
    38  
    39 AM_CPPFLAGS += @EXT2FS_CFLAGS@ @E2P_CFLAGS@ 
    4038endif