Skip to contentSkip to conversation

build: choose right automake variables

PATCH Applied Jan Engelhardt 2 participants 3 messages Nov 30, 2020 – Dec 8, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 build: choose right automake variables

-l is a library selection, needs to go into _LDADD/_LIBADD.

---
 examples/Makefile.am | 4 ++--
 src/Makefile.am      | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
Makefile.am +2 -2
index 1906697..97bb70c 100644
@@ -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
index ab2a151..8cede12 100644
@@ -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
#1 lore raw

PATCH 2/2 Update .gitignore

---
 .gitignore | 4 ++++
 1 file changed, 4 insertions(+)
.gitignore +4 -0
index a0fc139..525628e 100644
@@ -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