libgcrypt/Use-the-compiler-switch-O0-for-compiling-jitterentro.patch
2023-08-01 20:02:54 +08:00

26 lines
860 B
Diff

From 642d43d4545b48322dc10a5b9f08bc5d09a8591f Mon Sep 17 00:00:00 2001
From: zhengxiaoxiao <zhengxiaoxiao2@huawei.com>
Date: Tue, 1 Aug 2023 12:05:44 +0800
Subject: [PATCH] Use the compiler switch -O0 for compiling jitterentropy.c.
---
random/jitterentropy-base.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/random/jitterentropy-base.c b/random/jitterentropy-base.c
index cf7630d..08a2cd3 100644
--- a/random/jitterentropy-base.c
+++ b/random/jitterentropy-base.c
@@ -55,7 +55,7 @@
***************************************************************************/
#ifdef __OPTIMIZE__
- #error "The CPU Jitter random number generator must not be compiled with optimizations. See documentation. Use the compiler switch -O0 for compiling jitterentropy.c."
+ #pragma GCC optimize ("O0")
#endif
/*
--
2.33.0