summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in13
1 files changed, 12 insertions, 1 deletions
diff --git a/configure.in b/configure.in
index 980519dc535..161a70dae5f 100644
--- a/configure.in
+++ b/configure.in
@@ -1750,7 +1750,18 @@ then
LDFLAGS="$LDFLAGS -rdynamic"
AC_MSG_RESULT("-rdynamic")
else
- AC_MSG_RESULT("none")
+ case "$SYSTEM_TYPE$with_mysqld_ldflags " in
+ *freebsd*"-all-static "*|*dragonfly*"-all-static "*)
+ AC_MSG_RESULT("none")
+ ;;
+ *freebsd*|*dragonfly*)
+ MYSQLD_EXTRA_LDFLAGS="$MYSQLD_EXTRA_LDFLAGS -export-dynamic"
+ AC_MSG_RESULT("-export-dynamic")
+ ;;
+ *)
+ AC_MSG_RESULT("none")
+ ;;
+ esac
fi
dnl Checks for typedefs, structures, and compiler characteristics.