build: choose right automake variables
PATCH 1/2 build: choose right automake variables
-l is a library selection, needs to go into _LDADD/_LIBADD.
Signed-off-by Jan Engelhardt <[email protected]>
--- examples/Makefile.am | 4 ++-- src/Makefile.am | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)
Makefile.am +2 -2
@@ -3,5 +3,5 @@ include ${top_srcdir}/Make_global.am check_PROGRAMS = nf-queue nf_queue_SOURCES = nf-queue.c -nf_queue_LDADD = ../src/libnetfilter_queue.la -nf_queue_LDFLAGS = -dynamic -lmnl +nf_queue_LDADD = ../src/libnetfilter_queue.la -lmnl +nf_queue_LDFLAGS = -dynamic
Makefile.am +1 -1
@@ -26,7 +26,7 @@ lib_LTLIBRARIES = libnetfilter_queue.la noinst_HEADERS = internal.h -libnetfilter_queue_la_LDFLAGS = -Wc,-nostartfiles -lnfnetlink \ +libnetfilter_queue_la_LDFLAGS = -Wc,-nostartfiles \ -version-info $(LIBVERSION) libnetfilter_queue_la_SOURCES = libnetfilter_queue.c \ nlmsg.c \
Signature · 1 line
2.29.2
PATCH 2/2 Update .gitignore
Signed-off-by Jan Engelhardt <[email protected]>
--- .gitignore | 4 ++++ 1 file changed, 4 insertions(+)
.gitignore +4 -0
@@ -2,6 +2,7 @@ .libs/ Makefile Makefile.in +.dirstamp *.o *.la *.lo
@@ -12,6 +13,9 @@ Makefile.in /config.* /configure /libtool +/stamp-h1 /doxygen.cfg /libnetfilter_queue.pc + +/examples/nf-queue
Signature · 1 line
2.29.2
Applied patch 1/2 and 2/2, thanks Jan.