drop -flto=auto from flags

i9-portable changed/i9-portable/java-1.8.0-openjdk-portable-1.8.0.392.b08-1.el9
Arkady L. Shane 1 year ago
parent bbfa7941b0
commit a92a0d626e
Signed by: tigro
GPG Key ID: 9C7900103E1C4F8B

@ -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}

Loading…
Cancel
Save