summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Smeets <flo@FreeBSD.org>2020-05-31 16:20:20 +0200
committerAmar Tumballi <amar@kadalu.io>2020-06-09 01:34:06 +0000
commit5419d280a99e45eb5bbd82df844410a53159c615 (patch)
tree3e5e52b338d82afdcf5341937ca67cf9260c71ca
parenta15640a5c7b423683ca26d0012461265d643bd84 (diff)
Make glusterfs compile on all recent and supported FreeBSD releases.
I'm currently trying to update the FreeBSD port of glusterfs from 3.11 to 7.6. With this change I was able to compile everything again on 11.3, 11.4RC1, 12.1 and 13 (head) Change-Id: I867fa51e931f7ef486529eecb58d903d2d23f79a Fixes: #1275 Signed-off-by: Florian Smeets <flo@FreeBSD.org>
-rw-r--r--configure.ac7
1 files changed, 3 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac
index 9b425cf5fd6..17db0b053f4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -731,6 +731,9 @@ AC_ARG_ENABLE([georeplication],
BUILD_SYNCDAEMON=no
case $host_os in
+ freebsd*)
+#do nothing
+ ;;
linux*)
#do nothing
;;
@@ -1207,10 +1210,6 @@ case $host_os in
;;
*freebsd*)
GF_HOST_OS="GF_BSD_HOST_OS"
- GF_CFLAGS="${GF_CFLAGS} -O0"
- GF_CFLAGS="${GF_CFLAGS} -DTHREAD_UNSAFE_BASENAME"
- GF_CFLAGS="${GF_CFLAGS} -DTHREAD_UNSAFE_DIRNAME"
- GF_CFLAGS="${GF_CFLAGS} -D_LIBGEN_H_"
GF_CFLAGS="${GF_CFLAGS} -DO_DSYNC=0"
GF_CFLAGS="${GF_CFLAGS} -Dxdr_quad_t=xdr_longlong_t"
GF_CFLAGS="${GF_CFLAGS} -Dxdr_u_quad_t=xdr_u_longlong_t"