$OpenBSD: patch-tests_Makefile_in,v 1.6 2013/12/08 18:25:25 ajacoutot Exp $

From c8603e6d3673f06f84dc2b0ff0f96ede4ad881a8 Mon Sep 17 00:00:00 2001
From: Ryan Lortie <desrt@desrt.ca>
Date: Sun, 08 Dec 2013 17:58:49 +0000
Subject: portability: only link to -ldl if needed

--- tests/Makefile.in.orig	Mon Sep 23 23:29:29 2013
+++ tests/Makefile.in	Thu Sep 26 08:51:37 2013
@@ -406,8 +406,7 @@ changeset_SOURCES = changeset.c
 shm_CFLAGS = $(glib_CFLAGS)
 shm_LDADD = \
 	../shm/libdconf-shm.a			\
-	$(glib_LIBS)				\
-	-ldl
+	$(glib_LIBS)
 
 shm_SOURCES = \
 	shm.c					\
@@ -452,7 +451,7 @@ engine_LDADD = \
 	../common/libdconf-common.a		\
 	libdconf-mock.a				\
 	$(glib_LIBS)				\
-	-ldl -lm
+	-lm
 
 engine_SOURCES = engine.c
 client_CFLAGS = $(gio_CFLAGS) -DSRCDIR=\"$(abs_srcdir)\"
