From 5fc6464527b11f08f1e3592e2c8eff621521d85c Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Mon, 21 Jul 2008 14:50:36 -0700 Subject: [PATCH] Don't explicitly link against libdl. 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 | 2 +- secchan/Makefile.am | 2 +- switch/Makefile.am | 2 +- tests/Makefile.am | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/controller/Makefile.am b/controller/Makefile.am index 8202859a..84e89642 100644 --- a/controller/Makefile.am +++ b/controller/Makefile.am @@ -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 diff --git a/secchan/Makefile.am b/secchan/Makefile.am index 69b605f2..a54e6d21 100644 --- a/secchan/Makefile.am +++ b/secchan/Makefile.am @@ -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 diff --git a/switch/Makefile.am b/switch/Makefile.am index a2d8dc50..a20188ae 100644 --- a/switch/Makefile.am +++ b/switch/Makefile.am @@ -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 diff --git a/tests/Makefile.am b/tests/Makefile.am index 8c548c04..8c5bf8dc 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -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 -- 2.30.2