portability: only link to -ldl if needed
commitc8603e6d3673f06f84dc2b0ff0f96ede4ad881a8
authorRyan Lortie <desrt@desrt.ca>
Sun, 8 Dec 2013 17:58:49 +0000 (8 12:58 -0500)
committerRyan Lortie <desrt@desrt.ca>
Sun, 8 Dec 2013 18:02:36 +0000 (8 13:02 -0500)
treebd53b70cedf8c9b7dfc89fcee4b2ee3f4c7290b8
parent99828199bb83938d695385f59dd4b88b4e789420
portability: only link to -ldl if needed

We use -ldl in some of our testcases to mock out some system calls via
interposing, using dlsym() to chain up.

Make sure we only use this if we really need to.  Many systems have
dlsym() in the C library and no -ldl.

https://bugzilla.gnome.org/show_bug.cgi?id=720072
configure.ac
tests/Makefile.am