diff --git a/zziplib.spec b/zziplib.spec index cac827c..e0bdcb6 100644 --- a/zziplib.spec +++ b/zziplib.spec @@ -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}