From 362e06ef1314d9755b5aed206dc78da442c30109 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Tue, 15 Dec 2020 20:22:44 -0700 Subject: [PATCH] - Use -fno-strict-aliasing as nxc.c is not strict-aliasing safe --- netcdf.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/netcdf.spec b/netcdf.spec index 4f34ede..82fee71 100644 --- a/netcdf.spec +++ b/netcdf.spec @@ -1,6 +1,6 @@ Name: netcdf Version: 4.7.3 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Libraries for the Unidata network Common Data Form License: NetCDF @@ -170,6 +170,7 @@ NetCDF parallel openmpi static libraries %global _configure ../configure #Common configure options export LDFLAGS="%{__global_ldflags} -L%{_libdir}/hdf" +export CFLAGS="%{optflags} -fno-strict-aliasing" %global configure_opts \\\ --enable-shared \\\ --enable-netcdf-4 \\\ @@ -339,6 +340,9 @@ done %changelog +* Tue Dec 15 2020 Jeff Law - 4.7.3-5 +- Use -fno-strict-aliasing as nxc.c is not strict-aliasing safe + * Sun Sep 6 2020 Orion Poplawski - 4.7.3-4 - Work around UCX segfault issue (FTBFS bz#1864189)