Don't explicitly link against libdl.
authorBen Pfaff <blp@nicira.com>
Mon, 21 Jul 2008 21:50:36 +0000 (14:50 -0700)
committerBen Pfaff <blp@nicira.com>
Mon, 21 Jul 2008 22:05:53 +0000 (15:05 -0700)
There is no need to add -ldl explicitly to each program's LDADD, because
the configure test for dladdr does that for us.

controller/Makefile.am
secchan/Makefile.am
switch/Makefile.am
tests/Makefile.am

index 8202859a839dd9a4c2df6c76ccad1382aaea51d6..84e8964235c5ae69d2a400aba3a932d9f4993371 100644 (file)
@@ -5,7 +5,7 @@ man_MANS = controller.8
 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
index 69b605f253ff7407531881cb5deac185eb6cc3bb..a54e6d211e7f69b9aabdf85ac5dce2145f2c55c3 100644 (file)
@@ -9,7 +9,7 @@ man_MANS =
 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
index a2d8dc50fe52b7acbc70f44f1751ebe7ee2a762e..a20188ae1f70364f6591c5681e7b1445afe072b4 100644 (file)
@@ -17,7 +17,7 @@ switch_SOURCES = \
        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
index 8c548c048c85e14346193db901f801ab2534a38c..8c5bf8dc0dac02171a28c46567e88c355ac5b34a 100644 (file)
@@ -13,5 +13,5 @@ test_type_props_SOURCES = test-type-props.c
 
 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