mirror of
https://abf.rosa.ru/djam/java-11-openjdk.git
synced 2025-04-22 00:44:09 +00:00
Use ldflags from Fedora because %optflags are inside %ldflags in ROSA and OMV and confuse build sscripts
This commit is contained in:
parent
a34c4e4243
commit
c7ac49bfb6
1 changed files with 4 additions and 1 deletions
|
@ -139,7 +139,10 @@
|
|||
# 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 ourcppflags %(echo %ourflags | sed -e 's|-fexceptions||')
|
||||
%global ourldflags %{__global_ldflags}
|
||||
|
||||
# As discussed with bero@, optflags are duplicated in ldflags for e.g. LTO, but it consuses OpenJDK build scripts
|
||||
#%%global ourldflags %{__global_ldflags}
|
||||
%global ourldflags -Wl,-z,relro -Wl,--as-needed -Wl,-z,now
|
||||
|
||||
# With disabled nss is NSS deactivated, so NSS_LIBDIR can contain the wrong path
|
||||
# the initialization must be here. Later the pkg-config have buggy behavior
|
||||
|
|
Loading…
Add table
Reference in a new issue