diff options
author | Martin Pärtel <martin.partel@gmail.com> | 2025-06-01 10:35:21 +0300 |
---|---|---|
committer | Martin Pärtel <martin.partel@gmail.com> | 2025-06-01 10:40:23 +0300 |
commit | 4a5ba91d01ea667af4a1b7bb5ee16cc665c11944 (patch) | |
tree | c0e447e43b481e9b960bf67fee69bf7992c5fc2b /configure.ac | |
parent | b9eee2a87d79e62ee5aaafe03c191337c93ff115 (diff) | |
download | bindfs-4a5ba91d01ea667af4a1b7bb5ee16cc665c11944.tar.gz |
Incorporate some fixes from #166
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index f20b632..0f69555 100644 --- a/configure.ac +++ b/configure.ac @@ -37,7 +37,14 @@ AM_CONDITIONAL([INSTALL_MACOS_FS_LINK], [case $build_os in darwin* ) test x"$ena # _DARWIN_BETTER_REALPATH fixes MacOS realpath() broken around Catalina (#83). my_CPPFLAGS="-D_REENTRANT -D_FILE_OFFSET_BITS=64 -D_XOPEN_SOURCE=700 -D__BSD_VISIBLE=1 -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_DARWIN_BETTER_REALPATH" -my_CFLAGS="-std=c99 -Wall -Wextra -Wpedantic -fno-common" +dnl libfuse >=3.17 started requiring gnu11 from the C compiler +AS_IF([test "x$with_fuse2" == "xyes"], [ + my_std=c99 +], [ + my_std=gnu11 +]) + +my_CFLAGS="-std=${my_std} -Wall -Wextra -Wpedantic -fno-common" my_LDFLAGS="-pthread" AC_SUBST([my_CPPFLAGS]) AC_SUBST([my_CFLAGS]) |