- Dont build with valgrind support on sparc arches
- use -fPIC on sparc arches
This commit is contained in:
parent
23f5faa236
commit
5e6f2d99fa
15
openmpi.spec
15
openmpi.spec
|
@ -19,7 +19,7 @@
|
|||
|
||||
Name: openmpi%{?_cc_name_suffix}
|
||||
Version: 1.4.1
|
||||
Release: 2%{?dist}
|
||||
Release: 3%{?dist}
|
||||
Summary: Open Message Passing Interface
|
||||
Group: Development/Libraries
|
||||
License: BSD
|
||||
|
@ -30,7 +30,10 @@ Source1: openmpi.pc.in
|
|||
Source2: openmpi.module.in
|
||||
Source3: macros.openmpi
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
BuildRequires: gcc-gfortran, libtool, numactl-devel, valgrind-devel
|
||||
BuildRequires: gcc-gfortran, libtool, numactl-devel
|
||||
%ifnarch %{sparc}
|
||||
BuildRequires: valgrind-devel
|
||||
%endif
|
||||
BuildRequires: libibverbs-devel >= 1.1.3, opensm-devel > 3.3.0
|
||||
BuildRequires: librdmacm librdmacm-devel libibcm libibcm-devel
|
||||
BuildRequires: python
|
||||
|
@ -106,7 +109,7 @@ Contains development headers and libraries for openmpi
|
|||
|
||||
%prep
|
||||
%setup -q -n openmpi-%{version}
|
||||
%ifarch x86_64
|
||||
%ifarch x86_64 %{sparc}
|
||||
XFLAGS="-fPIC"
|
||||
%endif
|
||||
|
||||
|
@ -118,7 +121,9 @@ XFLAGS="-fPIC"
|
|||
--enable-mpi-threads \
|
||||
--enable-openib-ibcm \
|
||||
--with-sge \
|
||||
%ifnarch %{sparc}
|
||||
--with-valgrind \
|
||||
%endif
|
||||
--with-wrapper-cflags="%{?opt_cflags} %{?modeflag}" \
|
||||
--with-wrapper-cxxflags="%{?opt_cxxflags} %{?modeflag}" \
|
||||
--with-wrapper-fflags="%{?opt_fflags} %{?modeflag}" \
|
||||
|
@ -216,6 +221,10 @@ rm -rf %{buildroot}
|
|||
%{_sysconfdir}/rpm/macros.%{namearch}
|
||||
|
||||
%changelog
|
||||
* Thu Mar 11 2010 Dennis Gilmore <dennis@ausil.us> - 1.4.1-3
|
||||
- Dont build with valgrind support on sparc arches
|
||||
- use -fPIC on sparc arches
|
||||
|
||||
* Tue Jan 26 2010 Jay Fenlason <fenlason@redhat.com> - 1.4.1-2
|
||||
- BuildRequires: python
|
||||
|
||||
|
|
Loading…
Reference in New Issue