Temporary workaround for compiling with GCC-10

This commit is contained in:
sagitter 2020-02-02 18:58:21 +01:00
parent 6151ec0d1c
commit 4a8a1b17e2
1 changed files with 11 additions and 1 deletions

View File

@ -4,7 +4,7 @@
Name: hdf
Version: 4.2.14
Release: 7%{?dist}
Release: 8%{?dist}
Summary: A general purpose library and file format for storing scientific data
License: BSD
URL: https://portal.hdfgroup.org/
@ -135,8 +135,10 @@ touch -c -r ./hdf/src/hdfi.h.ppc ./hdf/src/hdfi.h
# For destdir/examplesdir patches
autoreconf -vif
# avoid upstream compiler flags settings
rm config/*linux-gnu
# TODO: upstream fix
# libmfhdf.so is link to libdf.so
export CFLAGS="%{optflags} -I%{_includedir}/tirpc"
@ -154,6 +156,11 @@ cd -
mkdir build-static
cd build-static
# Java requires shared libraries, fortran requires static
# Temporary workaround for compiling on GCC-10
%if 0%{?fedora} && 0%{?fedora} > 31
export FCFLAGS="%{build_fflags} -fallow-argument-mismatch"
%endif
%configure --disable-production --disable-java --disable-netcdf \
--enable-shared=no --enable-static=yes --enable-fortran %{!?el6:--with-szlib} \
--includedir=%{_includedir}/%{name}
@ -252,6 +259,9 @@ make -j1 -C build-static check
%changelog
* Sun Feb 02 2020 Antonio Trande <sagitter@fedoraproject.org> 4.2.14-8
- Temporary workaround for compiling with GCC-10
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.14-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild