diff mbox series

[nft,v2] Make libnftables a local static library

Message ID 20171130183623.19719-1-phil@nwl.cc
State Accepted
Delegated to: Pablo Neira
Headers show
Series [nft,v2] Make libnftables a local static library | expand

Commit Message

Phil Sutter Nov. 30, 2017, 6:36 p.m. UTC
This changes Makefiles so that libnftables is built into a static
library which is not installed. This allows for incompatible changes
while still providing a library to link to for testing purposes.

Signed-off-by: Phil Sutter <phil@nwl.cc>
---
Changes since v1:
- Keep it a libtool library.
- Update src/.gitignore.
---
 src/.gitignore  | 1 +
 src/Makefile.am | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

Comments

Pablo Neira Ayuso Dec. 4, 2017, 10:06 a.m. UTC | #1
On Thu, Nov 30, 2017 at 07:36:23PM +0100, Phil Sutter wrote:
> This changes Makefiles so that libnftables is built into a static
> library which is not installed. This allows for incompatible changes
> while still providing a library to link to for testing purposes.

Applied, thanks Phil.
--
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 series

Patch

diff --git a/src/.gitignore b/src/.gitignore
index 36d6acd1e4d01..e27d4f8431eec 100644
--- a/src/.gitignore
+++ b/src/.gitignore
@@ -1,3 +1,4 @@ 
+libnftables.a
 libnftables.la
 parser.c
 parser.h
diff --git a/src/Makefile.am b/src/Makefile.am
index 9f7a4bfbb90a4..7581ec2090092 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -27,7 +27,7 @@  parser_bison.o scanner.o: AM_CFLAGS += -Wno-missing-prototypes -Wno-missing-decl
 
 BUILT_SOURCES = parser_bison.h
 
-lib_LTLIBRARIES = libnftables.la
+noinst_LTLIBRARIES = libnftables.la
 
 libnftables_la_SOURCES =			\
 		rule.c				\