diff --git a/0003-PATCH-compiler-rt-Do-not-introduce-a-dependency-on-c.patch b/0003-PATCH-compiler-rt-Do-not-introduce-a-dependency-on-c.patch new file mode 100644 index 0000000..daafd83 --- /dev/null +++ b/0003-PATCH-compiler-rt-Do-not-introduce-a-dependency-on-c.patch @@ -0,0 +1,26 @@ +From d95be525ceceb5afeaa87f4de95c30ec664b17d3 Mon Sep 17 00:00:00 2001 +From: serge-sans-paille +Date: Tue, 11 May 2021 14:38:21 +0200 +Subject: [PATCH][compiler-rt] Do not introduce a dependency on c++ runtime + +That's at the expense of a runtime overhead though. +--- + compiler-rt/lib/sanitizer_common/sanitizer_posix_libcdep.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_posix_libcdep.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_posix_libcdep.cpp +index 2b10bdd..240e6b3e 100644 +--- a/compiler-rt/lib/sanitizer_common/sanitizer_posix_libcdep.cpp ++++ b/compiler-rt/lib/sanitizer_common/sanitizer_posix_libcdep.cpp +@@ -167,7 +167,7 @@ bool SupportsColoredOutput(fd_t fd) { + // TODO(glider): different tools may require different altstack size. + static uptr GetAltStackSize() { + // SIGSTKSZ is not enough. +- static const uptr kAltStackSize = SIGSTKSZ * 4; ++ const uptr kAltStackSize = SIGSTKSZ * 4; + return kAltStackSize; + } + +-- +1.8.3.1 + diff --git a/compiler-rt.spec b/compiler-rt.spec index 1db6491..c53d1f2 100644 --- a/compiler-rt.spec +++ b/compiler-rt.spec @@ -22,6 +22,7 @@ Source2: tstellar-gpg-key.asc Patch0: 0001-PATCH-compiler-rt-Workaround-libstdc-limitation-wrt..patch Patch1: 0002-PATCH-compiler-rt-Sanitizer-built-against-glibc-2.34.patch Patch2: D102059.diff +Patch3: 0003-PATCH-compiler-rt-Do-not-introduce-a-dependency-on-c.patch BuildRequires: gcc BuildRequires: gcc-c++