From 89cd0f57b174ec4dc7e0a4e6015ed401272d9aad Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 21 Sep 2005 11:12:43 +0000 Subject: [PATCH] * Use -all_load on Mac OS X. --- configure.ac | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/configure.ac b/configure.ac index f1fa25d8a..59bc89fb3 100644 --- a/configure.ac +++ b/configure.ac @@ -180,6 +180,13 @@ AC_SUBST(NIX_GROUP) AC_DEFINE_UNQUOTED(NIX_GROUP, ["$NIX_GROUP"], [Nix group]) +# This is needed if either ATerm or Berkeley DB are static libraries, +# and the Nix libraries are dynamic. +if test "$(uname)" = "Darwin"; then + LDFLAGS="-all_load $LDFLAGS" +fi + + AM_CONFIG_HEADER([config.h]) AC_CONFIG_FILES([Makefile externals/Makefile