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}