- Explicitly link libnetcdf.so against -lhdf5_hl -lhdf5

This commit is contained in:
Orion Poplawski 2010-04-19 17:47:36 +00:00
parent 215263d38b
commit 2681062450
2 changed files with 19 additions and 1 deletions

12
netcdf-4.1.1-hdf5.patch Normal file
View File

@ -0,0 +1,12 @@
diff -up netcdf-4.1.1/libsrc4/Makefile.in.hdf5 netcdf-4.1.1/libsrc4/Makefile.in
--- netcdf-4.1.1/libsrc4/Makefile.in.hdf5 2010-04-19 09:44:45.333650779 -0600
+++ netcdf-4.1.1/libsrc4/Makefile.in 2010-04-19 09:44:45.338649501 -0600
@@ -886,7 +886,7 @@ clean-libLTLIBRARIES:
rm -f "$${dir}/so_locations"; \
done
libnetcdf.la: $(libnetcdf_la_OBJECTS) $(libnetcdf_la_DEPENDENCIES)
- $(libnetcdf_la_LINK) $(libnetcdf_la_OBJECTS) $(libnetcdf_la_LIBADD) $(LIBS)
+ $(libnetcdf_la_LINK) $(libnetcdf_la_OBJECTS) $(libnetcdf_la_LIBADD) -lhdf5_hl -lhdf5 $(LIBS)
clean-checkPROGRAMS:
@list='$(check_PROGRAMS)'; test -n "$$list" || exit 0; \

View File

@ -1,6 +1,6 @@
Name: netcdf
Version: 4.1.1
Release: 2%{?dist}
Release: 3%{?dist}
Summary: Libraries for the Unidata network Common Data Form
Group: Applications/Engineering
@ -10,6 +10,8 @@ Source0: http://www.unidata.ucar.edu/downloads/netcdf/ftp/netcdf-4.1.1.ta
#Use pkgconfig in nc-config to avoid multi-lib issues
Patch0: netcdf-4.1-beta2-pkgconfig.patch
Patch1: netcdf-4.1.1-fflags.patch
#Explicitly link libnetcdf.so agains -lhdf5_hl -lhdf5, reported upstream
Patch2: netcdf-4.1.1-hdf5.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: gcc-gfortran, gawk
@ -76,6 +78,7 @@ This package contains the netCDF static libs.
%setup -q
%patch0 -p1 -b .pkgconfig
%patch1 -p1 -b .fflags
%patch2 -p1 -b .hdf5
%build
@ -158,6 +161,9 @@ fi
%changelog
* Mon Apr 19 2010 Orion Poplawski <orion@cora.nwra.com> - 4.1.1-3
- Explicitly link libnetcdf.so against -lhdf5_hl -lhdf5
* Fri Apr 9 2010 Orion Poplawski <orion@cora.nwra.com> - 4.1.1-2
- Add patch to cleanup nc-config --fflags