From d4042fedf0807d5020d25347003460c17239050a Mon Sep 17 00:00:00 2001 From: Steven Phillips Date: Wed, 28 Aug 2024 21:43:15 +0100 Subject: [PATCH] Use -flto=auto for performance and remove warning --- microemacs/src/linuxgcc.mak | 2 +- microemacs/src/macoscc.mak | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/microemacs/src/linuxgcc.mak b/microemacs/src/linuxgcc.mak index dadf87ac..15812df0 100644 --- a/microemacs/src/linuxgcc.mak +++ b/microemacs/src/linuxgcc.mak @@ -70,7 +70,7 @@ CCDEFS = -m$(BIT_SIZE) -D_LINUX -D_ARCHITEC=$(ARCHITEC) -D_TOOLKIT=$(TOOLKIT) CCFLAGSR = -O3 -flto -DNDEBUG=1 -Wall -Wno-uninitialized -Wno-unused-result CCFLAGSD = -g -Wall LDDEFS = -m$(BIT_SIZE) -LDFLAGSR = -O3 -flto +LDFLAGSR = -O3 -flto=auto LDFLAGSD = -g LDLIBS = -lm -ldl diff --git a/microemacs/src/macoscc.mak b/microemacs/src/macoscc.mak index ccc81711..c9a42494 100644 --- a/microemacs/src/macoscc.mak +++ b/microemacs/src/macoscc.mak @@ -92,7 +92,7 @@ CCDEFS = -m$(BIT_SIZE) $(ARCFLAGS) -D_MACOS -D_ARCHITEC=$(ARCHITEC) -D_TOOLKIT CCFLAGSR = -O3 -flto -DNDEBUG=1 -Wno-uninitialized CCFLAGSD = -g LDDEFS = -m$(BIT_SIZE) $(ARCFLAGS) -LDFLAGSR = -O3 -flto +LDFLAGSR = -O3 -flto=auto LDFLAGSD = -g LDLIBS = ARFLAGSR = rcs