summaryrefslogtreecommitdiff
path: root/net/glusterfs/files/patch-configure.ac
diff options
context:
space:
mode:
authorLi-Wen Hsu <lwhsu@FreeBSD.org>2020-08-10 03:28:07 +0000
committerLi-Wen Hsu <lwhsu@FreeBSD.org>2020-08-10 03:28:07 +0000
commitff95778eebe9fa4619daf130c27157b28b01e4ec (patch)
treedc5ee602dd325885cd8c5084fd07b0cd1dca7d02 /net/glusterfs/files/patch-configure.ac
parentdevel/arduino-bsd-mk: Update to 1.4 (diff)
Fix build on i386
PR: 248552 Submitted by: Daniel Morante <daniel@morante.net> (maintainer)
Diffstat (limited to 'net/glusterfs/files/patch-configure.ac')
-rw-r--r--net/glusterfs/files/patch-configure.ac20
1 files changed, 18 insertions, 2 deletions
diff --git a/net/glusterfs/files/patch-configure.ac b/net/glusterfs/files/patch-configure.ac
index 6d385aa7902e..97d2dfe68826 100644
--- a/net/glusterfs/files/patch-configure.ac
+++ b/net/glusterfs/files/patch-configure.ac
@@ -1,6 +1,22 @@
--- configure.ac.orig 2020-07-06 01:22:37 UTC
+++ configure.ac
-@@ -731,6 +731,9 @@ AC_ARG_ENABLE([georeplication],
+@@ -351,7 +351,14 @@ if test "x$ac_cv_file__etc_centos_release" = "xyes"; t
+ fi
+
+ dnl On some distributions '-ldl' isn't automatically added to LIBS
+-AC_CHECK_LIB([dl], [dlopen], [LIB_DL=-ldl])
++case $host_os in
++ *freebsd*)
++ #do nothing
++ ;;
++ *)
++ AC_CHECK_LIB([dl], [dlopen], [LIB_DL=-ldl])
++ ;;
++esac
+ AC_SUBST(LIB_DL)
+
+ AC_ARG_ENABLE([privport_tracking],
+@@ -731,6 +738,9 @@ AC_ARG_ENABLE([georeplication],
BUILD_SYNCDAEMON=no
case $host_os in
@@ -10,7 +26,7 @@
linux*)
#do nothing
;;
-@@ -1207,10 +1210,6 @@ case $host_os in
+@@ -1207,10 +1217,6 @@ case $host_os in
;;
*freebsd*)
GF_HOST_OS="GF_BSD_HOST_OS"