From: Justin Swartz <justin.swartz@risingedge.co.za>
To: netfilter-devel@vger.kernel.org
Cc: Robert Kolchmeyer <rkolchmeyer@google.com>,
Florian Westphal <fw@strlen.de>,
Justin Swartz <justin.swartz@risingedge.co.za>
Subject: [PATCH] ebtables: add "allstatic" build target
Date: Mon, 1 Aug 2022 10:10:32 +0200 [thread overview]
Message-ID: <20220801081032.13366-1-justin.swartz@risingedge.co.za> (raw)
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>
---
Makefile.am | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
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
--
reply other threads:[~2022-08-01 8:13 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220801081032.13366-1-justin.swartz@risingedge.co.za \
--to=justin.swartz@risingedge.co.za \
--cc=fw@strlen.de \
--cc=netfilter-devel@vger.kernel.org \
--cc=rkolchmeyer@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).