From 4d4930390c5e7e7433610378c8d68527e57597fd Mon Sep 17 00:00:00 2001 From: Kalev Lember Date: Dec 17 2009 19:34:50 +0000 Subject: Enable libgomp support. --- diff --git a/mingw32-gcc.spec b/mingw32-gcc.spec index 4bb99e4..de9ca47 100644 --- a/mingw32-gcc.spec +++ b/mingw32-gcc.spec @@ -5,7 +5,7 @@ Name: mingw32-gcc Version: 4.4.2 -Release: 1%{?dist} +Release: 2%{?dist} Summary: MinGW Windows cross-compiler (GCC) for C License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions @@ -47,6 +47,7 @@ BuildRequires: mingw32-filesystem >= 49 BuildRequires: mingw32-binutils >= 2.19.51.0.14 BuildRequires: mingw32-runtime BuildRequires: mingw32-w32api +BuildRequires: mingw32-pthreads BuildRequires: gmp-devel BuildRequires: mpfr-devel BuildRequires: libgomp @@ -59,10 +60,14 @@ Requires: mingw32-binutils >= 2.19.51.0.14 Requires: mingw32-runtime Requires: mingw32-w32api Requires: mingw32-cpp +# libgomp dll is linked with pthreads, but since we don't run the +# automatic dependency scripts, it doesn't get picked up automatically. +Requires: mingw32-pthreads # We don't run the automatic dependency scripts which would # normally detect and provide the following DLL: Provides: mingw32(libgcc_s_sjlj-1.dll) +Provides: mingw32(libgomp-1.dll) %description @@ -163,6 +168,7 @@ CC="%{__cc} ${RPM_OPT_FLAGS}" \ --with-gnu-as --with-gnu-ld --verbose \ --without-newlib \ --disable-multilib \ + --enable-libgomp \ --with-system-zlib \ --disable-nls --without-included-gettext \ --disable-win32-registry \ @@ -196,6 +202,9 @@ ln -sf ..%{_prefix}/bin/i686-pc-mingw32-cpp \ mkdir -p $RPM_BUILD_ROOT%{_mingw32_bindir} mv $RPM_BUILD_ROOT%{_bindir}/libgcc_s_sjlj-1.dll \ $RPM_BUILD_ROOT%{_mingw32_bindir} +# Same goes for this DLL under _libdir. +mv $RPM_BUILD_ROOT%{_libdir}/gcc/i686-pc-mingw32/bin/libgomp-1.dll \ + $RPM_BUILD_ROOT%{_mingw32_bindir} # Don't want the *.la files. find $RPM_BUILD_ROOT -name '*.la' -delete @@ -223,6 +232,9 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/gcc/i686-pc-mingw32/%{version}/libgcc_eh.a %{_libdir}/gcc/i686-pc-mingw32/%{version}/libgcc_s.a %{_libdir}/gcc/i686-pc-mingw32/%{version}/libgcov.a +%{_libdir}/gcc/i686-pc-mingw32/%{version}/libgomp.a +%{_libdir}/gcc/i686-pc-mingw32/%{version}/libgomp.dll.a +%{_libdir}/gcc/i686-pc-mingw32/%{version}/libgomp.spec %{_libdir}/gcc/i686-pc-mingw32/%{version}/libssp.a %{_libdir}/gcc/i686-pc-mingw32/%{version}/libssp_nonshared.a %{_libdir}/gcc/i686-pc-mingw32/%{version}/libssp.dll.a @@ -240,6 +252,7 @@ rm -rf $RPM_BUILD_ROOT %dir %{_libexecdir}/gcc/i686-pc-mingw32/%{version}/install-tools %{_libexecdir}/gcc/i686-pc-mingw32/%{version}/install-tools/* %{_mingw32_bindir}/libgcc_s_sjlj-1.dll +%{_mingw32_bindir}/libgomp-1.dll %{_mandir}/man1/i686-pc-mingw32-gcc.1* %{_mandir}/man1/i686-pc-mingw32-gcov.1* @@ -284,10 +297,18 @@ rm -rf $RPM_BUILD_ROOT %{_mandir}/man1/i686-pc-mingw32-gfortran.1* %{_libdir}/gcc/i686-pc-mingw32/%{version}/libgfortran.a %{_libdir}/gcc/i686-pc-mingw32/%{version}/libgfortranbegin.a +%dir %{_libdir}/gcc/i686-pc-mingw32/%{version}/finclude +%{_libdir}/gcc/i686-pc-mingw32/%{version}/finclude/omp_lib.f90 +%{_libdir}/gcc/i686-pc-mingw32/%{version}/finclude/omp_lib.h +%{_libdir}/gcc/i686-pc-mingw32/%{version}/finclude/omp_lib.mod +%{_libdir}/gcc/i686-pc-mingw32/%{version}/finclude/omp_lib_kinds.mod %{_libexecdir}/gcc/i686-pc-mingw32/%{version}/f951 %changelog +* Thu Dec 17 2009 Chris Bagwell - 4.4.2-2 +- Enable libgomp support. + * Sun Nov 22 2009 Kalev Lember - 4.4.2-1 - Update to gcc 4.4.2 20091114 svn 154179, which includes VTA backport from 4.5 branch.