summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Swartz <justin.swartz@risingedge.co.za>2022-08-01 10:10:32 +0200
committerFlorian Westphal <fw@strlen.de>2022-08-02 15:24:00 +0200
commit916d4205ccc3f67dd0eef7d5240a7e9f816dbc08 (patch)
tree705a7a9f61c1d3567f9dab210839ff69ad685f78
parent3f3a794a96ca7057d6e981567ef84f4f4bdb43e5 (diff)
downloadebtables-916d4205ccc3f67dd0eef7d5240a7e9f816dbc08.tar.gz
ebtables: add "allstatic" build targetHEADmaster
The "allstatic" target produces a statically linked (or standalone) binary, in contrast to "static" which produces a dynamically linked binary with libebtc baked in. Signed-off-by: Justin Swartz <justin.swartz@risingedge.co.za> Signed-off-by: Florian Westphal <fw@strlen.de>
-rw-r--r--Makefile.am4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index b246064..05556d2 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -25,7 +25,7 @@ AM_CPPFLAGS = ${regular_CPPFLAGS} -I${top_srcdir}/include \
AM_CFLAGS = ${regular_CFLAGS}
sbin_PROGRAMS = ebtables-legacy ebtablesd ebtablesu ebtables-legacy-restore
-EXTRA_PROGRAMS = static examples/ulog/test_ulog
+EXTRA_PROGRAMS = allstatic static examples/ulog/test_ulog
sysconf_DATA = ethertypes
sbin_SCRIPTS = ebtables-legacy-save
man8_MANS = ebtables-legacy.8
@@ -52,6 +52,8 @@ ebtables_legacy_restore_SOURCES = ebtables-restore.c
ebtables_legacy_restore_LDADD = libebtc.la
static_SOURCES = ebtables-standalone.c $(libebtc_la_SOURCES)
static_LDFLAGS = -static
+allstatic_SOURCES = $(static_SOURCES)
+allstatic_LDFLAGS = -all-static
examples_ulog_test_ulog_SOURCES = examples/ulog/test_ulog.c getethertype.c
daemon: ebtablesd ebtablesu