Accepting request 87239 from home:algraf:branches:devel:tools

Make valgrind compile on ARM.

OBS-URL: https://build.opensuse.org/request/show/87239
OBS-URL: https://build.opensuse.org/package/show/devel:tools/valgrind?expand=0&rev=47
This commit is contained in:
Dirk Mueller 2011-10-11 19:13:19 +00:00 committed by Git OBS Bridge
parent 55d1d12ffe
commit f9c2383985

View File

@ -176,6 +176,11 @@ cd ..
%patch47
%build
%ifarch %arm
# Valgrind doesn't support compiling for Thumb yet. Remove when it gets
# native thumb support.
RPM_OPT_FLAGS=${RPM_OPT_FLAGS/-mthumb/-mthumb-interwork -marm}
%endif
export CFLAGS="$RPM_OPT_FLAGS"
export CXXFLAGS="$RPM_OPT_FLAGS"
autoreconf -fi
@ -218,6 +223,9 @@ cp -a README* NEWS AUTHORS COPYING COPYING.DOCS $RPM_BUILD_ROOT/%_defaultdocdir/
%ifarch s390 s390x
%_libdir/valgrind/*-s390x-linux
%endif
%ifarch %arm
%_libdir/valgrind/*-arm-linux
%endif
%_libdir/valgrind/*-linux.so
%_libdir/valgrind/*.supp