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
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
12 Signed-off-by: Jörg Thalheim <joerg@thalheim.io>
15 1 file changed, 1 insertion(+), 1 deletion(-)
17 diff --git a/make-mac.mk b/make-mac.mk
18 index 7af200ad..b388c05a 100644
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)
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)
28 EXTRA_CARGO_FLAGS=--release