summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorMichal Schmidt <mschmidt@redhat.com>2015-10-13 20:06:04 +0200
committerMichal Schmidt <mschmidt@redhat.com>2015-10-14 14:49:18 +0200
commite97379dea2a5b99648abd2d76fae108b369f4988 (patch)
tree5063aae006f280a4090de611c2d70bd58befc8bc /Makefile.am
parent5fd2e2284323304ad28f8ab80041f3cf6632dc72 (diff)
build: libdl is needed only for libnss_resolve
Not everything needs to link to libdl. dlopen+dlsym are used only by libnss_resolve.
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am
index 8646e55450..c22394f0bf 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -919,7 +919,6 @@ libbasic_la_CFLAGS = \
libbasic_la_LIBADD = \
$(SELINUX_LIBS) \
$(CAP_LIBS) \
- -ldl \
-lrt \
-lm
@@ -5148,7 +5147,8 @@ libnss_resolve_la_LDFLAGS = \
-Wl,--version-script=$(top_srcdir)/src/nss-resolve/nss-resolve.sym
libnss_resolve_la_LIBADD = \
- libshared.la
+ libshared.la \
+ -ldl
lib_LTLIBRARIES += \
libnss_resolve.la