From 0f3084afac78521c0e97742f5733c413a1715d5c Mon Sep 17 00:00:00 2001 From: ellson Date: Tue, 9 Jun 2009 15:24:58 +0000 Subject: [PATCH] apply chage for Darwin LIBLTDL_LDFLAGS from: Peter Volkov --- configure.ac | 7 +++---- lib/gvc/Makefile.am | 3 ++- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/configure.ac b/configure.ac index 2e50448cc..36fb82726 100644 --- a/configure.ac +++ b/configure.ac @@ -479,11 +479,9 @@ m4_ifdef([LT_INIT], ]) use_ltdl="Yes" + AC_LIBLTDL_CONVENIENCE if test "x$DARWIN9" = "xyes"; then - AC_LIBLTDL_CONVENIENCE - LIBLTDL="$LIBLTDL -Wl,-unexported_symbol,_lt_*" - else - AC_LIBLTDL_CONVENIENCE + LIBLTDL_LDFLAGS="-Wl,-unexported_symbol,_lt_*" fi else use_ltdl="No (disabled)" @@ -491,6 +489,7 @@ fi AM_CONDITIONAL(ENABLE_LTDL, [test "x$enable_ltdl" != "xno"]) AC_SUBST(INCLTDL) AC_SUBST(LIBLTDL) +AC_SUBST(LIBLTDL_LDFLAGS) m4_ifdef([LT_INIT], [ #code that is for Libtool 2.x ], diff --git a/lib/gvc/Makefile.am b/lib/gvc/Makefile.am index 8ce2fc932..016c0e3e2 100644 --- a/lib/gvc/Makefile.am +++ b/lib/gvc/Makefile.am @@ -53,7 +53,8 @@ libgvc_C_la_DEPENDENCIES += $(top_builddir)/lib/ortho/libortho_C.la endif if ENABLE_LTDL libgvc_C_la_LIBADD += $(LIBLTDL) -libgvc_C_la_DEPENDENCIES += $(top_builddir)/libltdl/libltdlc.la +libgvc_C_la_LDADD += $(LIBLTDL_LDFLAGS) +libgvc_C_la_DEPENDENCIES += $(LIBLTDL) endif libgvc_la_LDFLAGS = -version-info $(GVC_VERSION) -no-undefined -- 2.40.0