Fridrich Strba 2018-01-29 09:46:59 +00:00 committed by Git OBS Bridge
parent 68f837b206
commit 1fd01b8b7f
2 changed files with 19 additions and 2 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Mon Jan 29 09:44:55 UTC 2018 - fstrba@suse.com
- Fix build with gcc 7.3
* add -fno-delete-null-pointer-checks -fno-lifetime-dse and
-std=gnu++98
-------------------------------------------------------------------
Fri Nov 3 11:36:40 UTC 2017 - fstrba@suse.com

View File

@ -1,7 +1,7 @@
#
# spec file for package java-1_8_0-openjdk
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -446,8 +446,18 @@ export ZLIB_LIBS="-L/%{_lib} -lz"
%endif
CFLAGS=$(rpm -E '%{optflags}' | sed 's/-Wall\>//')
CFLAGS="$CFLAGS -Wno-error"
CXXFLAGS=${CFLAGS}
%ifarch ppc64 ppc64le ppc
CFLAGS="$CFLAGS -fno-strict-aliasing"
%endif
%if 0%{?suse_version} >= 1330
CFLAGS="$CFLAGS -std=gnu++98 -fno-delete-null-pointer-checks -fno-lifetime-dse -fpermissive"
CXXFLAGS="$CXXFLAGS -std=gnu++98 -fno-delete-null-pointer-checks -fno-lifetime-dse"
%endif
export CFLAGS
export CXXFLAGS=${CFLAGS}
export CXXFLAGS
%if %{with_sunec}
export NSS_SOFTOKN_CFLAGS="`pkg-config --cflags nss` -I`pwd`"
export NSS_SOFTOKN_LIBS="-L%{_libdir} -lnssdbm3 -lsoftokn3 -lssl3 -lsmime3 -lnss3 -lnssutil3 -lfreebl -L%{_libdir}/nspr -lplds4 -lplc4 -lnspr4"