])
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)"
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
],
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