diff --git a/fix-tests.patch b/fix-tests.patch new file mode 100644 index 0000000..dede9f0 --- /dev/null +++ b/fix-tests.patch @@ -0,0 +1,13 @@ +diff --git a/test/elf/relocatable.sh b/test/elf/relocatable.sh +index 0065479..c5fe661 100755 +--- a/test/elf/relocatable.sh ++++ b/test/elf/relocatable.sh +@@ -14,7 +14,7 @@ t=out/test/elf/$testname + mkdir -p $t + + # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98667 +-[ $MACHINE = i386 ] && { echo skipped; exit; } ++[ $MACHINE = i386 -o $MACHINE = i686 ] && { echo skipped; exit; } + + cat < + +- Add fix-tests.patch which fixes tests on i586. + ------------------------------------------------------------------- Fri Jul 1 09:13:58 UTC 2022 - Martin Liška diff --git a/mold.spec b/mold.spec index e78d7fb..cab9f41 100644 --- a/mold.spec +++ b/mold.spec @@ -24,7 +24,8 @@ License: AGPL-3.0-or-later Group: Development/Tools/Building URL: https://github.com/rui314/mold Source: https://github.com/rui314/mold/archive/v%{version}/mold-%{version}.tar.gz -ExclusiveArch: aarch64 %arm x86_64 aarch64 riscv64 +Patch0: fix-tests.patch +ExclusiveArch: aarch64 %arm %ix86 x86_64 aarch64 riscv64 BuildRequires: cmake %if %{suse_version} < 1550 BuildRequires: gcc10-c++