Commit 3f4d143e authored by Tim Lunn's avatar Tim Lunn

Fix build failure on Ubuntu/Debian

This fixes unresolved symbols when linking with --as-needed

Closes #238
parent 105ecdf4
......@@ -172,7 +172,8 @@ librsvg_@RSVG_API_MAJOR_VERSION@_la_LDFLAGS = \
librsvg_@RSVG_API_MAJOR_VERSION@_la_LIBADD = \
$(LIBRSVG_LIBS) \
$(LIBM) \
$(RUST_LIB)
$(RUST_LIB) \
$(DLOPEN_LIBS)
librsvgincdir = $(includedir)/librsvg-$(RSVG_API_VERSION)/librsvg
librsvginc_HEADERS = \
......
......@@ -67,6 +67,11 @@ PKG_PROG_PKG_CONFIG
LT_INIT([win32-dll])
LT_LIB_M
# Check if -ldl is needed to use dlopen()
AC_CHECK_FUNC(dlopen, [],
[AC_CHECK_LIB(dl, dlopen, [DLOPEN_LIBS=-ldl])])
AC_SUBST(DLOPEN_LIBS)
dnl ===========================================================================
AC_CHECK_PROG(CARGO, [cargo], [yes], [no])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment