forked from pool/multipath-tools
* Spec file: Add --std=gnu99 to fix compilation on SLE12
OBS-URL: https://build.opensuse.org/package/show/Base:System/multipath-tools?expand=0&rev=224
This commit is contained in:
parent
5cc04e352b
commit
0f5b3b47ac
@ -4,6 +4,7 @@ Fri Aug 21 22:28:33 UTC 2020 - mwilck@suse.com
|
||||
- Update to version 0.8.4+170+suse.801341f:
|
||||
* libmultipath: tests: fix bitfield tests
|
||||
* Spec file: disable LTO for %check (bsc#1133122)
|
||||
* Spec file: Add --std=gnu99 to fix compilation on SLE12
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Aug 20 19:20:59 UTC 2020 - mwilck@suse.com
|
||||
|
@ -158,14 +158,14 @@ cp %{SOURCE4} .
|
||||
[ -n "$SOURCE_DATE_EPOCH" ] && export KBUILD_BUILD_TIMESTAMP=@$SOURCE_DATE_EPOCH
|
||||
# %%make_build is not supported in SLE12
|
||||
%{?make_build}%{!?make_build:make %{?_smp_mflags}} \
|
||||
CC="%__cc" OPTFLAGS="%{optflags}" %{dirflags} %{makeflags}
|
||||
CC="%__cc" OPTFLAGS="--std=gnu99 %{optflags}" %{dirflags} %{makeflags}
|
||||
|
||||
%if 0%{?with_check} == 1
|
||||
%check
|
||||
# ld fails to resolve cmocka's __wrap symbols with -flto
|
||||
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88643
|
||||
%define _lto_cflags %{nil}
|
||||
make OPTFLAGS="%{optflags}" %{_make_output_sync} %{?_smp_mflags} test
|
||||
make OPTFLAGS="--std=gnu99 %{optflags}" %{_make_output_sync} %{?_smp_mflags} test
|
||||
%endif
|
||||
|
||||
%install
|
||||
|
Loading…
Reference in New Issue
Block a user