From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DF812C43334 for ; Sun, 3 Jul 2022 10:31:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231217AbiGCKb4 (ORCPT ); Sun, 3 Jul 2022 06:31:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229993AbiGCKb4 (ORCPT ); Sun, 3 Jul 2022 06:31:56 -0400 X-Greylist: delayed 2351 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Sun, 03 Jul 2022 03:31:51 PDT Received: from outgoing7.flk.host-h.net (outgoing7.flk.host-h.net [188.40.212.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D2DD6345 for ; Sun, 3 Jul 2022 03:31:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=risingedge.co.za; s=xneelo; h=Message-ID:References:In-Reply-To:Subject:Cc: To:From:Date:Content-Transfer-Encoding:Content-Type:MIME-Version:reply-to: sender:bcc; bh=2xBFCcQ0Px55tJUZAoKyep9LgQW2tO+o4qFS3S25N0M=; b=cE7NUUuD66zihY tOwlwYtFXMR3MNxZ+rovpOTLYZWUrZZIkA1CfnMzrcNyC2OXdq9JZO4leCbDOt4C2ID4HV7Q5twrc 4fu/ZaWKAo1oPTxwdEA/43gRcjSZQcawcXQag1sgGT4f7x9Am2BYSoSDGssaVCc1nny2wKD7rsdcY T0O3I68ExzMAWukUXixdib43hIt6ZrOFocJ3Dkuu3PdwqaKQ/cWiHZTmJ1julHgAq2jMEpMu4j9cO KxnNSgcbupiFH3Kj/+x8BDjdrExj4LJq7ehnIqZRJCOgSp8YVwKCWhjCBYApiolrpq+pmZ+dmYk3I NofCC+oiWyah2OTrQzFA==; Received: from www31.flk1.host-h.net ([188.40.1.173]) by antispam1-flk1.host-h.net with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o7wHJ-0007nD-7O; Sun, 03 Jul 2022 11:52:35 +0200 Received: from roundcubeweb1.flk1.host-h.net ([138.201.244.33] helo=webmail9.konsoleh.co.za) by www31.flk1.host-h.net with esmtpa (Exim 4.92) (envelope-from ) id 1o7wHG-0008Cx-MS; Sun, 03 Jul 2022 11:52:30 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Sun, 03 Jul 2022 11:52:30 +0200 From: Justin Swartz To: netfilter-devel@vger.kernel.org Cc: justin.swartz@risingedge.co.za, rkolchmeyer@google.com, fw@strlen.de, pablo@netfilter.org Subject: [PATCH resend] ebtables: extend the 'static' build target fix. In-Reply-To: <20220625081441.13323-1-justin.swartz@risingedge.co.za> References: <20220625081441.13323-1-justin.swartz@risingedge.co.za> Message-ID: <42ed3ff1408e811918f138e1f1aefec1@risingedge.co.za> X-Sender: justin.swartz@risingedge.co.za User-Agent: Roundcube Webmail/1.2.3 X-Authenticated-Sender: justin.swartz@risingedge.co.za X-Virus-Scanned: Clear X-Originating-IP: 188.40.1.173 X-SpamExperts-Domain: risingedge.co.za X-SpamExperts-Username: Authentication-Results: host-h.net; auth=pass (login) smtp.auth=@risingedge.co.za X-SpamExperts-Outgoing-Class: ham X-SpamExperts-Outgoing-Evidence: SB/global_tokens (0.00456048098403) X-Recommended-Action: accept X-Filter-ID: Pt3MvcO5N4iKaDQ5O6lkdGlMVN6RH8bjRMzItlySaT9GFC4sOlVaWbJn0suSq8XFPUtbdvnXkggZ 3YnVId/Y5jcf0yeVQAvfjHznO7+bT5xntEluci+0hyorrNrHYHDzyr7MsDDHqPd/CLhJt64naRdA 5v8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ammaster.host-h.net Precedence: bulk List-ID: X-Mailing-List: netfilter-devel@vger.kernel.org Assign "-all-static" (instead of "-static") to "static_LDFLAGS" in Makefile.am, as libtool will only produce a static binary if it is explicitly told that all of the linked libraries should be static. BEFORE $ file static static: ELF 32-bit LSB pie executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-musl-i386.so.1, not stripped AFTER $ file static static: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), statically linked, not stripped REFERENCE "Another common situation where static linking is desirable is in creating a standalone binary. Use libtool to do the linking and add the -all-static flag." -- Libtool Manual, Section 3.7 Signed-off-by: Justin Swartz --- Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index b246064..d011919 100644 --- a/Makefile.am +++ b/Makefile.am @@ -51,7 +51,7 @@ ebtablesd_LDADD = libebtc.la ebtables_legacy_restore_SOURCES = ebtables-restore.c ebtables_legacy_restore_LDADD = libebtc.la static_SOURCES = ebtables-standalone.c $(libebtc_la_SOURCES) -static_LDFLAGS = -static +static_LDFLAGS = -all-static examples_ulog_test_ulog_SOURCES = examples/ulog/test_ulog.c getethertype.c daemon: ebtablesd ebtablesu