From a92a0d626ed875f4dd53d236d8ee1bc978e9eacb Mon Sep 17 00:00:00 2001 From: tigro Date: Fri, 20 Oct 2023 12:37:16 +0300 Subject: [PATCH] drop -flto=auto from flags --- SPECS/java-1.8.0-openjdk-portable.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SPECS/java-1.8.0-openjdk-portable.spec b/SPECS/java-1.8.0-openjdk-portable.spec index eaa8267..da656bf 100644 --- a/SPECS/java-1.8.0-openjdk-portable.spec +++ b/SPECS/java-1.8.0-openjdk-portable.spec @@ -178,7 +178,7 @@ # We filter out -Wall which will otherwise cause HotSpot to produce hundreds of thousands of warnings (100+mb logs) # We replace it with -Wformat (required by -Werror=format-security) and -Wno-cpp to avoid FORTIFY_SOURCE warnings # We filter out -fexceptions as the HotSpot build explicitly does -fno-exceptions and it's otherwise the default for C++ -%global ourflags %(echo %optflags | sed -e 's|-Wall|-Wformat -Wno-cpp|' | sed -r -e 's|-O[0-9]*||') +%global ourflags %(echo %optflags | sed -e 's|-Wall|-Wformat -Wno-cpp|' | sed -r -e 's|-O[0-9]*||' | sed -e 's|-flto=auto ||g') %global ourcppflags %(echo %ourflags | sed -e 's|-fexceptions||') %global ourldflags %{__global_ldflags}