1
0
Fridrich Strba 2021-06-10 16:44:44 +00:00 committed by Git OBS Bridge
parent 5c179a38de
commit 5d41fb64c2
2 changed files with 22 additions and 0 deletions

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Thu Jun 10 16:24:28 UTC 2021 - Fridrich Strba <fstrba@suse.com>
- Force DWARF version 4 when building with gcc >= 11
* the internal omr tools set error with debugging information
in DWARF5 format
* fixes build in factory
-------------------------------------------------------------------
Sun May 16 07:25:18 UTC 2021 - Fridrich Strba <fstrba@suse.com>

View File

@ -402,6 +402,20 @@ export ARCH_DATA_MODEL=64
bash ./autogen.sh
)
EXTRA_CFLAGS="-Wno-error -Wno-maybe-uninitialized -fno-delete-null-pointer-checks -fno-lifetime-dse"
EXTRA_CPP_FLAGS="-Wno-error -Wno-maybe-uninitialized -std=gnu++98 -fno-delete-null-pointer-checks -fno-lifetime-dse"
%ifarch ppc64le
EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing"
%endif
%if %{?pkg_vcmp:%pkg_vcmp gcc-c++ >= 11}%{!?pkg_vcmp:0}
EXTRA_CPP_FLAGS="$EXTRA_CPP_FLAGS -g -gdwarf-4"
EXTRA_CFLAGS="$EXTRA_CFLAGS -g -gdwarf-4"
export CXXFLAGS="$EXTRA_CPP_FLAGS"
export CFLAGS="$EXTRA_CFLAGS"
%endif
bash configure \
--disable-zip-debug-info \
--with-milestone="fcs" \