lock: 1.3.0 -> 1.3.4 (#364295)
[NixPkgs.git] / pkgs / by-name / ze / zerotierone / 0001-darwin-disable-link-time-optimization.patch
blob475655f94a56a06cc1901398b9f513f88d3a0dc2
1 From f71d88a15f537cbc5ea80ad2922c013553a5caab Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= <joerg@thalheim.io>
3 Date: Fri, 21 Jun 2024 14:43:03 +0200
4 Subject: [PATCH 2/2] darwin: disable link-time optimization
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
9 It's not yet clear to me, but in our build we somehow mix objects with
10 and without flto.
12 Signed-off-by: Jörg Thalheim <joerg@thalheim.io>
13 ---
14 make-mac.mk | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
17 diff --git a/make-mac.mk b/make-mac.mk
18 index 7af200ad..b388c05a 100644
19 --- a/make-mac.mk
20 +++ b/make-mac.mk
21 @@ -84,7 +84,7 @@ ifeq ($(ZT_DEBUG),1)
22 node/Salsa20.o node/SHA512.o node/C25519.o node/Poly1305.o: CFLAGS = -Wall -O2 -g $(INCLUDES) $(DEFS)
23 else
24 CFLAGS?=-Ofast -fstack-protector-strong
25 - CFLAGS+=$(ARCH_FLAGS) -Wall -flto -fPIE -mmacosx-version-min=$(MACOS_VERSION_MIN) -DNDEBUG -Wno-unused-private-field $(INCLUDES) $(DEFS)
26 + CFLAGS+=$(ARCH_FLAGS) -Wall -fPIE -mmacosx-version-min=$(MACOS_VERSION_MIN) -DNDEBUG -Wno-unused-private-field $(INCLUDES) $(DEFS)
27 STRIP=strip
28 EXTRA_CARGO_FLAGS=--release
29 RUST_VARIANT=release
30 --
31 2.44.1