Only use patched _config.h on non i686 and armv7hl

This commit is contained in:
Alexander Bokovoy 2018-02-01 23:46:11 +02:00
parent 31bda2e236
commit cbbc63a862

View File

@ -71,9 +71,13 @@ export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
# Remove rpath on 64bit archs
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' */libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' */libtool
# Only patch generated _config.h on non-i686 and armv7hl
# These platforms have a correct _config.h already
%ifnarch i686 armv7hl
cd _builddir
%apply_patch %{PATCH1} -p2
cd ..
%endif
%{__make} %{?_smp_mflags}