SHA256
1
0
forked from pool/binutils

Unset SOURCE_DATE_EPOCH for the testsuite

OBS-URL: https://build.opensuse.org/package/show/devel:gcc/binutils?expand=0&rev=461
This commit is contained in:
Michael Matz 2024-01-31 15:58:56 +00:00 committed by Git OBS Bridge
parent d0f2831079
commit dd7c1c259d

View File

@ -490,6 +490,11 @@ make -C gas-nesc %{?make_output_sync} %{?_smp_mflags}
%check
unset SUSE_ASNEEDED
# newer distros set this envvar (e.g. to get deterministic archives by default)
# but of course that breaks tests that precisely are
# designed for checking file replacement in archives based on mtime.
# just get rid of it for the binutils testsuite
unset SOURCE_DATE_EPOCH
cd build-dir
%if 0%{?cross:1}
make -k check CFLAGS="-O2 -g" CXXFLAGS="-O2 -g" CFLAGS_FOR_TARGET="-O2 -g" CXXFLAGS_FOR_TARGET="-O2 -g" || %{make_check_handling}