- fixed FTBFS with gcc 4.7 on 32bit arch
This commit is contained in:
parent
6bf75720ac
commit
9718d84f4b
12
gmp.spec
12
gmp.spec
@ -6,7 +6,7 @@
|
|||||||
Summary: A GNU arbitrary precision library
|
Summary: A GNU arbitrary precision library
|
||||||
Name: gmp
|
Name: gmp
|
||||||
Version: 5.0.2
|
Version: 5.0.2
|
||||||
Release: 4%{?dist}
|
Release: 5%{?dist}
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
URL: http://gmplib.org/
|
URL: http://gmplib.org/
|
||||||
Source0: ftp://ftp.gnu.org/pub/gnu/gmp/gmp-%{version}.tar.bz2
|
Source0: ftp://ftp.gnu.org/pub/gnu/gmp/gmp-%{version}.tar.bz2
|
||||||
@ -67,6 +67,9 @@ fi
|
|||||||
mkdir base
|
mkdir base
|
||||||
cd base
|
cd base
|
||||||
ln -s ../configure .
|
ln -s ../configure .
|
||||||
|
%ifarch %{ix86}
|
||||||
|
export CFLAGS=$(echo $RPM_OPT_FLAGS | sed -e "s/-mtune=[^ ]*//g" | sed -e "s/-march=[^ ]*//g")" -march=i686"
|
||||||
|
%endif
|
||||||
./configure --build=%{_build} --host=%{_host} \
|
./configure --build=%{_build} --host=%{_host} \
|
||||||
--program-prefix=%{?_program_prefix} \
|
--program-prefix=%{?_program_prefix} \
|
||||||
--prefix=%{_prefix} \
|
--prefix=%{_prefix} \
|
||||||
@ -94,7 +97,7 @@ cd ..
|
|||||||
mkdir build-sse2
|
mkdir build-sse2
|
||||||
cd build-sse2
|
cd build-sse2
|
||||||
ln -s ../configure .
|
ln -s ../configure .
|
||||||
CFLAGS="$RPM_OPT_FLAGS -march=pentium4"
|
export CFLAGS=$(echo $RPM_OPT_FLAGS | sed -e "s/-mtune=[^ ]*//g" | sed -e "s/-march=[^ ]*//g")" -march=pentium4"
|
||||||
./configure --build=%{_build} --host=%{_host} \
|
./configure --build=%{_build} --host=%{_host} \
|
||||||
--program-prefix=%{?_program_prefix} \
|
--program-prefix=%{?_program_prefix} \
|
||||||
--prefix=%{_prefix} \
|
--prefix=%{_prefix} \
|
||||||
@ -116,7 +119,7 @@ sed -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
|
|||||||
-e 's|-lstdc++ -lm|-lstdc++|' \
|
-e 's|-lstdc++ -lm|-lstdc++|' \
|
||||||
-i libtool
|
-i libtool
|
||||||
export LD_LIBRARY_PATH=`pwd`/.libs
|
export LD_LIBRARY_PATH=`pwd`/.libs
|
||||||
make CFLAGS="$RPM_OPT_FLAGS -march=pentium4" %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
unset CFLAGS
|
unset CFLAGS
|
||||||
cd ..
|
cd ..
|
||||||
%endif
|
%endif
|
||||||
@ -233,6 +236,9 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Jan 19 2012 Peter Schiffer <pschiffe@redhat.com> 1:5.0.2-5
|
||||||
|
- fixed FTBFS with gcc 4.7 on 32bit arch
|
||||||
|
|
||||||
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:5.0.2-4
|
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:5.0.2-4
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user