]> granicus.if.org Git - graphviz/commitdiff
apply chage for Darwin LIBLTDL_LDFLAGS from: Peter Volkov <pva@gentoo.org>
authorellson <devnull@localhost>
Tue, 9 Jun 2009 15:24:58 +0000 (15:24 +0000)
committerellson <devnull@localhost>
Tue, 9 Jun 2009 15:24:58 +0000 (15:24 +0000)
configure.ac
lib/gvc/Makefile.am

index 2e50448ccd1d27a6c0ddf83aa179a148c5524172..36fb827268da3d7644bde02accab5e6e12ec36fc 100644 (file)
@@ -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
     ],
index 8ce2fc932b2225c27bc112966da7e8b3671d561c..016c0e3e2f516d37abc052ddc6cee851b55efa4d 100644 (file)
@@ -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