From patchwork Wed Feb 16 02:42:27 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lev Stipakov X-Patchwork-Id: 2293 Return-Path: Delivered-To: patchwork@openvpn.net Delivered-To: patchwork@openvpn.net Received: from director15.mail.ord1d.rsapps.net ([172.30.191.6]) by backend41.mail.ord1d.rsapps.net with LMTP id IEtJKI3/DGIodQAAqwncew (envelope-from ) for ; Wed, 16 Feb 2022 08:43:41 -0500 Received: from proxy12.mail.ord1d.rsapps.net ([172.30.191.6]) by director15.mail.ord1d.rsapps.net with LMTP id QNm7L43/DGLWUgAAIcMcQg (envelope-from ) for ; Wed, 16 Feb 2022 08:43:41 -0500 Received: from smtp13.gate.ord1d ([172.30.191.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by proxy12.mail.ord1d.rsapps.net with LMTPS id kIeBL43/DGKnJQAA7PHxkg (envelope-from ) for ; Wed, 16 Feb 2022 08:43:41 -0500 X-Spam-Threshold: 95 X-Spam-Score: 0 X-Spam-Flag: NO X-Virus-Scanned: OK X-Orig-To: openvpnslackdevel@openvpn.net X-Originating-Ip: [216.105.38.7] Authentication-Results: smtp13.gate.ord1d.rsapps.net; iprev=pass policy.iprev="216.105.38.7"; spf=pass smtp.mailfrom="openvpn-devel-bounces@lists.sourceforge.net" smtp.helo="lists.sourceforge.net"; dkim=fail (signature verification failed) header.d=sourceforge.net; dkim=fail (signature verification failed) header.d=sf.net; dkim=fail (signature verification failed) header.d=gmail.com; dmarc=fail (p=none; dis=none) header.from=gmail.com X-Suspicious-Flag: YES X-Classification-ID: 735d8706-8f2e-11ec-aa57-525400b197d9-1-1 Received: from [216.105.38.7] ([216.105.38.7:52298] helo=lists.sourceforge.net) by smtp13.gate.ord1d.rsapps.net (envelope-from ) (ecelerity 4.2.38.62370 r(:)) with ESMTPS (cipher=DHE-RSA-AES256-GCM-SHA384) id 9F/F9-20852-D8FFC026; Wed, 16 Feb 2022 08:43:41 -0500 Received: from [127.0.0.1] (helo=sfs-ml-1.v29.lw.sourceforge.com) by sfs-ml-1.v29.lw.sourceforge.com with esmtp (Exim 4.94.2) (envelope-from ) id 1nKKa6-00056a-CU; Wed, 16 Feb 2022 13:42:52 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-1.v29.lw.sourceforge.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nKKa5-00056Q-KZ for openvpn-devel@lists.sourceforge.net; Wed, 16 Feb 2022 13:42:52 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=92pQbB3ZDvfvtzVCpit6Y2NbAUJrOKsaPn8DLciue5E=; b=dTOn91U0ApWLEiij1wcRYJQQFO 9+dkZkibbUKI9kMZXfBEdfapP/bs6c8RlT5rt2rwQQB4Ftw+GQdL6Upn5q8LP1QrRzdq6JAPvAMAS opDKUj7XKQHbp92/pOXNEedq82MxhuEkht62aj+vh1D/osglYDqKB/cx3LQwjILDT6NU=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:MIME-Version: Content-Type:Content-Transfer-Encoding:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=92pQbB3ZDvfvtzVCpit6Y2NbAUJrOKsaPn8DLciue5E=; b=EV2h90IL6fZ0Axnr7GwGZXitB0 gZwgtoPIInbBUPxken6YzrI9Av6UtkWhsF6eeBq1VSZx5RnXTXoRcHW8XQk6+II+f+Pprjmzb9qTt SYJeTph1dai0akoLbUiUdpGh3ppG+kVyR/lIVSkZp1k5rnRIY1xc5fpc/izSVrN6mGds=; Received: from mail-wm1-f50.google.com ([209.85.128.50]) by sfi-mx-2.v28.lw.sourceforge.com with esmtps (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.94.2) id 1nKKZz-0001Ij-26 for openvpn-devel@lists.sourceforge.net; Wed, 16 Feb 2022 13:42:48 +0000 Received: by mail-wm1-f50.google.com with SMTP id l67-20020a1c2546000000b00353951c3f62so1635391wml.5 for ; Wed, 16 Feb 2022 05:42:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id; bh=92pQbB3ZDvfvtzVCpit6Y2NbAUJrOKsaPn8DLciue5E=; b=qNm1mjAl4D12gc+QVgKTX9r5AEY8ClcmgG0SiajqR23czwG+uvHiogaG2P6DrZjak+ GH1KSo7VKrSGH6kpoe2Dmje/Du0BnAXNgLkvWiIAsDLENRjUwUt/E67GZMc987FUxhEw HlEBLBvdwyd6SZAzynpLv1HLdW1P7ktofR8tD7X3hP2/FAgC2WwilMFh9LAYBpjnvWEj QX4bF69IUXBDxwrpEymQZIT0kO2Je78rJjrIjDZJpZUsZz59kKfcObM6/xFspQxUPOnc 2SiAF6o0C2uQ7TdNT5spFDORCYA8zTssoz45GbRexvVmSyona9NbvzWUAqX5A3hakePI 6GmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=92pQbB3ZDvfvtzVCpit6Y2NbAUJrOKsaPn8DLciue5E=; b=IcQfZKcNZRdmRcEr9By3TRANwZNNdWqjXybPqZUhh/3qxgaT92Pr3Zy73m47/Udbkc FbHo3cR2MyDEO/5/WQjGtBJpHs3cFKR/ku8ghSgU5ij9aJQaQnw7U8+sVf61hIxUCsXx rbSmdwq6y+Sxqca7R8OQ0MpS8MXJZJdjhV3wr2UMoJ9YWHOUgC9UqChF+U8+Oawz0SMd W3usdAJVYwNWRF2jlmcEbOxV3HmC7MKEPaLGMGpytRXk1QHLqySYL9HDtNSMCOpfdd5C Brd5FpcKjUk7CbCBCwfUgMz/D0KQmN7F4fC+9XL0gYZ5BLPK23IkLI100zQ54/DzYYiW vhwQ== X-Gm-Message-State: AOAM530FhoV62Q9Ng8y/Rn+Bu2JkAN3/vlf4N3y6XEQdPltPQR32eBFo hi9ZOomjw9YpJrujVK3hgcluOAXkQopSRg== X-Google-Smtp-Source: ABdhPJyaJjYFKgBqc/1y7yA5xtYcYSbDzTrwt3XHdS9gyfmOaDNgzZx5PdoX7iRSEqhAg34G7NPdLQ== X-Received: by 2002:a05:600c:3b25:b0:37b:c6f3:74b4 with SMTP id m37-20020a05600c3b2500b0037bc6f374b4mr1793997wms.56.1645018960150; Wed, 16 Feb 2022 05:42:40 -0800 (PST) Received: from LAPTOP-4L3N7KFS.localdomain (nat1.panoulu.net. [185.38.2.1]) by smtp.gmail.com with ESMTPSA id h11sm18274222wrr.64.2022.02.16.05.42.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Feb 2022 05:42:39 -0800 (PST) From: Lev Stipakov To: openvpn-devel@lists.sourceforge.net Date: Wed, 16 Feb 2022 15:42:27 +0200 Message-Id: <20220216134227.147-1-lstipakov@gmail.com> X-Mailer: git-send-email 2.17.1 X-Spam-Report: Spam detection software, running on the system "util-spamd-1.v13.lw.sourceforge.com", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: From: Lev Stipakov Having .dll for a single executable doesn't make much sense. Static linking removes 117kb .dll and grows .exe size by only 4kb. Signed-off-by: Lev Stipakov --- contrib/vcpkg-triplets/arm64-windows-ovpn.cmake | 3 ++- contrib/vcpkg-triplets/x64-windows-ovpn.cmake | 3 ++- contrib/vcpkg-triplets/x86-windows-ovpn.cmake | 3 ++- 3 [...] Content analysis details: (-0.2 points, 6.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.128.50 listed in list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [lstipakov[at]gmail.com] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.128.50 listed in wl.mailspike.net] -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-Headers-End: 1nKKZz-0001Ij-26 Subject: [Openvpn-devel] [PATCH master+release/2.5] vcpkg: link lzo statically X-BeenThere: openvpn-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Lev Stipakov MIME-Version: 1.0 Errors-To: openvpn-devel-bounces@lists.sourceforge.net X-getmail-retrieved-from-mailbox: Inbox From: Lev Stipakov Having .dll for a single executable doesn't make much sense. Static linking removes 117kb .dll and grows .exe size by only 4kb. Signed-off-by: Lev Stipakov Acked-by: Gert Doering --- contrib/vcpkg-triplets/arm64-windows-ovpn.cmake | 3 ++- contrib/vcpkg-triplets/x64-windows-ovpn.cmake | 3 ++- contrib/vcpkg-triplets/x86-windows-ovpn.cmake | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/contrib/vcpkg-triplets/arm64-windows-ovpn.cmake b/contrib/vcpkg-triplets/arm64-windows-ovpn.cmake index dd3c6c0a..dc600056 100644 --- a/contrib/vcpkg-triplets/arm64-windows-ovpn.cmake +++ b/contrib/vcpkg-triplets/arm64-windows-ovpn.cmake @@ -2,6 +2,7 @@ set(VCPKG_TARGET_ARCHITECTURE arm64) set(VCPKG_CRT_LINKAGE dynamic) set(VCPKG_LIBRARY_LINKAGE dynamic) -if(PORT STREQUAL "lz4") +set(STATIC_PORTS lz4 lzo) +if(PORT IN_LIST STATIC_PORTS) set(VCPKG_LIBRARY_LINKAGE static) endif() diff --git a/contrib/vcpkg-triplets/x64-windows-ovpn.cmake b/contrib/vcpkg-triplets/x64-windows-ovpn.cmake index 7036ed2d..76e5cd55 100644 --- a/contrib/vcpkg-triplets/x64-windows-ovpn.cmake +++ b/contrib/vcpkg-triplets/x64-windows-ovpn.cmake @@ -2,6 +2,7 @@ set(VCPKG_TARGET_ARCHITECTURE x64) set(VCPKG_CRT_LINKAGE dynamic) set(VCPKG_LIBRARY_LINKAGE dynamic) -if(PORT STREQUAL "lz4") +set(STATIC_PORTS lz4 lzo) +if(PORT IN_LIST STATIC_PORTS) set(VCPKG_LIBRARY_LINKAGE static) endif() diff --git a/contrib/vcpkg-triplets/x86-windows-ovpn.cmake b/contrib/vcpkg-triplets/x86-windows-ovpn.cmake index 7d3bf340..643d7bdd 100644 --- a/contrib/vcpkg-triplets/x86-windows-ovpn.cmake +++ b/contrib/vcpkg-triplets/x86-windows-ovpn.cmake @@ -2,6 +2,7 @@ set(VCPKG_TARGET_ARCHITECTURE x86) set(VCPKG_CRT_LINKAGE dynamic) set(VCPKG_LIBRARY_LINKAGE dynamic) -if(PORT STREQUAL "lz4") +set(STATIC_PORTS lz4 lzo) +if(PORT IN_LIST STATIC_PORTS) set(VCPKG_LIBRARY_LINKAGE static) endif()