Set CXXFLAXS without -match=i386 for i386 architecture

This commit is contained in:
Karel Klíč 2010-02-16 12:23:24 +00:00
parent 1d946fcea4
commit 78ca56ad3e

View File

@ -4,7 +4,7 @@
Name: opencv Name: opencv
Version: 2.0.0 Version: 2.0.0
Release: 4%{?dist} Release: 5%{?dist}
Summary: Collection of algorithms for computer vision Summary: Collection of algorithms for computer vision
Group: Development/Libraries Group: Development/Libraries
@ -39,7 +39,6 @@ BuildRequires: python-imaging, numpy
%{!?_without_gstreamer:BuildRequires: gstreamer-devel} %{!?_without_gstreamer:BuildRequires: gstreamer-devel}
%{?_with_xine:BuildRequires: xine-lib-devel} %{?_with_xine:BuildRequires: xine-lib-devel}
%description %description
OpenCV means Intel® Open Source Computer Vision Library. It is a collection of OpenCV means Intel® Open Source Computer Vision Library. It is a collection of
C functions and a few C++ classes that implement some popular Image Processing C functions and a few C++ classes that implement some popular Image Processing
@ -77,6 +76,11 @@ This package contains Python bindings for the OpenCV library.
autoreconf -vif autoreconf -vif
%build %build
%ifarch i386
export CXXFLAGS="%{__global_cflags} -m32 -fasynchronous-unwind-tables"
%endif
export SWIG_PYTHON_LIBS=%{_libdir} export SWIG_PYTHON_LIBS=%{_libdir}
%configure --disable-static --enable-apps \ %configure --disable-static --enable-apps \
%{?_with_ffmpeg:--with-ffmpeg}%{!?_with_ffmpeg:--without-ffmpeg} \ %{?_with_ffmpeg:--with-ffmpeg}%{!?_with_ffmpeg:--without-ffmpeg} \
@ -155,6 +159,9 @@ rm -rf $RPM_BUILD_ROOT
%changelog %changelog
* Tue Feb 16 2010 Karel Klic <kklic@redhat.com> - 2.0.0-5
- Set CXXFLAXS without -match=i386 for i386 architecture #565074
* Sat Jan 09 2010 Rakesh Pandit <rakesh@fedoraproject.org> - 2.0.0-4 * Sat Jan 09 2010 Rakesh Pandit <rakesh@fedoraproject.org> - 2.0.0-4
- Updated opencv-samples-Makefile (Thanks Scott Tsai) #553697 - Updated opencv-samples-Makefile (Thanks Scott Tsai) #553697