Do not introduce a dependency on c++ runtime

This commit is contained in:
sergesanspaille 2021-05-11 14:58:18 +02:00
parent 21b2d4395f
commit 7290573e79
2 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,26 @@
From d95be525ceceb5afeaa87f4de95c30ec664b17d3 Mon Sep 17 00:00:00 2001
From: serge-sans-paille <sguelton@redhat.com>
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

View File

@ -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++