mirror of
https://abf.rosa.ru/djam/java-11-openjdk.git
synced 2025-04-20 16:04:10 +00:00
"error __PIC__ level differs in PCH file vs. current file" add flag -fno-PIC ix86
This commit is contained in:
parent
5563930102
commit
e39964f4d9
1 changed files with 3 additions and 0 deletions
|
@ -146,6 +146,9 @@
|
||||||
# We filter out -Wall which will otherwise cause HotSpot to produce hundreds of thousands of warnings (100+mb logs)
|
# 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 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++
|
# 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 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||')
|
%global ourcppflags %(echo %ourflags | sed -e 's|-fexceptions||')
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue