There is no need to add -ldl explicitly to each program's LDADD, because
the configure test for dladdr does that for us.
DISTCLEANFILES = controller.8
controller_SOURCES = controller.c
-controller_LDADD = ../lib/libopenflow.la -ldl $(SSL_LIBS)
+controller_LDADD = ../lib/libopenflow.la $(SSL_LIBS)
EXTRA_DIST = controller.8.in
controller.8: controller.8.in Makefile
endif
secchan_SOURCES = secchan.c
-secchan_LDADD = ../lib/libopenflow.la -ldl $(SSL_LIBS)
+secchan_LDADD = ../lib/libopenflow.la $(SSL_LIBS)
EXTRA_DIST = secchan.8.in
DISTCLEANFILES = secchan.8
table-hash.c \
table-linear.c
-switch_LDADD = ../lib/libopenflow.la -ldl $(SSL_LIBS)
+switch_LDADD = ../lib/libopenflow.la $(SSL_LIBS)
EXTRA_DIST = switch.8.in
DISTCLEANFILES = switch.8
check_PROGRAMS += test-dhcp-client
test_dhcp_client_SOURCES = test-dhcp-client.c
-test_dhcp_client_LDADD = ../lib/libopenflow.la -ldl
+test_dhcp_client_LDADD = ../lib/libopenflow.la