add FFLAGS="-fPIC" so that the F90 parts of the static library can be used

to create dynamic libs
epel9
Ed Hill 20 years ago
parent 8f3ae26e31
commit e28ddb8d1c

@ -1,6 +1,6 @@
Name: netcdf Name: netcdf
Version: 3.6.0 Version: 3.6.0
Release: 6.p1%{?dist} Release: 7.p1%{?dist}
Summary: Libraries for the Unidata network Common Data Form (NetCDF v3) Summary: Libraries for the Unidata network Common Data Form (NetCDF v3)
Group: Applications/Engineering Group: Applications/Engineering
@ -60,6 +60,7 @@ pages.
cd src cd src
export FC="gfortran" export FC="gfortran"
export CPPFLAGS="-fPIC" export CPPFLAGS="-fPIC"
export FFLAGS="-fPIC"
%configure %configure
# WARNING! # WARNING!
# The parallel build was tested and it does NOT work. # The parallel build was tested and it does NOT work.
@ -67,6 +68,7 @@ export CPPFLAGS="-fPIC"
make make
unset FC unset FC
unset CPPFLAGS unset CPPFLAGS
unset FFLAGS
%install %install
rm -rf ${RPM_BUILD_ROOT} rm -rf ${RPM_BUILD_ROOT}
@ -102,6 +104,9 @@ rm -rf ${RPM_BUILD_ROOT}
%changelog %changelog
* Fri Sep 29 2005 Ed Hill <ed@eh3.com> - 3.6.0-7.p1
- add FFLAGS="-fPIC"
* Fri Jun 13 2005 Ed Hill <ed@eh3.com> - 3.6.0-6.p1 * Fri Jun 13 2005 Ed Hill <ed@eh3.com> - 3.6.0-6.p1
- rebuild - rebuild

Loading…
Cancel
Save