diff mbox

[libnetfilter_conntrack] src/Makefile.am: drop hardcoded -ldl

Message ID 1421249390-11620-1-git-send-email-gustavo@zacarias.com.ar
State Accepted
Commit 8cab40790d9b7fefc6ca2bb100384b8d0cedfdc2
Delegated to: Pablo Neira
Headers show

Commit Message

Gustavo Zacarias Jan. 14, 2015, 3:29 p.m. UTC
This breaks static builds where the toolchain completely lacks libdl.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
 src/Makefile.am | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Florian Westphal Jan. 21, 2015, 12:06 a.m. UTC | #1
Gustavo Zacarias <gustavo@zacarias.com.ar> wrote:
> This breaks static builds where the toolchain completely lacks libdl.

... and I also don't see any reason why we'd need it. So I applied your patch.

Thanks.
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/src/Makefile.am b/src/Makefile.am
index 7d6c905..374598a 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -11,6 +11,6 @@  lib_LTLIBRARIES = libnetfilter_conntrack.la
 libnetfilter_conntrack_la_LIBADD = conntrack/libnfconntrack.la \
 				   expect/libnfexpect.la \
 				   ${LIBNFNETLINK_LIBS} ${LIBMNL_LIBS}
-libnetfilter_conntrack_la_LDFLAGS = -Wc,-nostartfiles -lnfnetlink -ldl 	\
+libnetfilter_conntrack_la_LDFLAGS = -Wc,-nostartfiles -lnfnetlink \
 				    -version-info $(LIBVERSION)
 libnetfilter_conntrack_la_SOURCES = main.c callback.c