$OpenBSD: patch-configure_ac,v 1.4 2012/07/13 15:10:47 kili Exp $
--- configure.ac.orig	Fri Jul  8 21:23:16 2011
+++ configure.ac	Thu Jul 12 18:27:17 2012
@@ -795,7 +795,7 @@ if test "x$cairo_pdf" = "xyes"; then
 fi
 
 dnl Shouldn't we test for libpng and libz?
-INKSCAPE_LIBS="$INKSCAPE_LIBS -lpng -lz -lX11 -lxml2 -ldl"
+INKSCAPE_LIBS="$INKSCAPE_LIBS -lpng -lz -lX11 -lxml2 $lt_cv_dlopen_libs"
 if test "x$openmp_ok" = "xyes"; then
 	INKSCAPE_LIBS="$INKSCAPE_LIBS -lgomp"
 fi
