[packages/gcc] fix build without fortran
atler
atler at pld-linux.org
Thu Apr 23 13:06:19 CEST 2020
commit 27527475532da19c12e7a4b3e8ac4c76afefb649
Author: Jan Palus <atler at pld-linux.org>
Date: Thu Apr 23 13:04:07 2020 +0200
fix build without fortran
gcc.spec | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gcc.spec b/gcc.spec
index 1d1324a..d080cce 100644
--- a/gcc.spec
+++ b/gcc.spec
@@ -3332,7 +3332,7 @@ rm -rf $RPM_BUILD_ROOT
%attr(755,root,root) %{_libdir}/libgomp.so
%{_libdir}/libgomp.la
%{_libdir}/libgomp.spec
-%{gcclibdir}/finclude
+%{?with_fortran:%{gcclibdir}/finclude}
%{gcclibdir}/include/omp.h
%{gcclibdir}/include/openacc.h
%{_infodir}/libgomp.info*
@@ -3352,7 +3352,7 @@ rm -rf $RPM_BUILD_ROOT
%attr(755,root,root) %{_libdir32}/libgomp.so
%{_libdir32}/libgomp.la
%{_libdir32}/libgomp.spec
-%{gcclibdir}/32/finclude
+%{?with_fortran:%{gcclibdir}/32/finclude}
%files -n libgomp-multilib-32-static
%defattr(644,root,root,755)
@@ -3370,7 +3370,7 @@ rm -rf $RPM_BUILD_ROOT
%attr(755,root,root) %{_libdirm2}/libgomp.so
%{_libdirm2}/libgomp.la
%{_libdirm2}/libgomp.spec
-%{gcclibdir}/%{multilib2}/finclude
+%{?with_fortran:%{gcclibdir}/%{multilib2}/finclude}
%files -n libgomp-multilib-%{multilib2}-static
%defattr(644,root,root,755)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/gcc.git/commitdiff/cc78b0c73daf2d373aa2b362978f67bc89c817f1
More information about the pld-cvs-commit
mailing list