From e97379dea2a5b99648abd2d76fae108b369f4988 Mon Sep 17 00:00:00 2001 From: Michal Schmidt Date: Tue, 13 Oct 2015 20:06:04 +0200 Subject: build: libdl is needed only for libnss_resolve Not everything needs to link to libdl. dlopen+dlsym are used only by libnss_resolve. --- Makefile.am | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Makefile.am') 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 -- cgit v1.2.3-54-g00ecf