"error __PIC__ level differs in PCH file vs. current file" add flag -fno-PIC ix86

This commit is contained in:
Святослав 2021-01-17 21:09:04 +00:00
parent 5563930102
commit e39964f4d9

View file

@ -146,6 +146,9 @@
# 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++
%ifarch %{ix86}
%global optflags %optflags -fno-PIC
%endif
%global ourflags %(echo %optflags | sed -e 's|-Wall|-Wformat -Wno-cpp|' | sed -r -e 's|-O[0-9]*||')
%global ourcppflags %(echo %ourflags | sed -e 's|-fexceptions||')