2021-08-12 16:45:25 +01:00
|
|
|
From: Dermot Bradley <dermot_bradley@yahoo.com>
|
|
|
|
Date: Wed, 14 Jul 2020 22:58 +0100
|
|
|
|
|
|
|
|
Jitterentropy library must be built with compiler optimisation disabled
|
|
|
|
as it *relies* on this. The below change to the Makefile ensures that abuild
|
|
|
|
general settings do not override the -O0 setting in the Makefile.
|
|
|
|
|
|
|
|
This is an Alpine-specific change and so not submitted upstream - it was
|
|
|
|
however discussed with upstream:
|
|
|
|
https://github.com/smuellerDD/jitterentropy-library/issues/55
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
diff -aur a/Makefile b/Makefile
|
|
|
|
--- a/Makefile
|
|
|
|
+++ b/Makefile
|
2023-04-27 02:59:22 +01:00
|
|
|
@@ -4,7 +4,8 @@
|
2021-08-12 16:45:25 +01:00
|
|
|
#Hardening
|
2023-04-27 02:59:22 +01:00
|
|
|
ENABLE_STACK_PROTECTOR ?= 1
|
2021-08-12 16:45:25 +01:00
|
|
|
CFLAGS ?= -fwrapv --param ssp-buffer-size=4 -fvisibility=hidden -fPIE -Wcast-align -Wmissing-field-initializers -Wshadow -Wswitch-enum
|
|
|
|
-CFLAGS +=-Wextra -Wall -pedantic -fPIC -O0 -fwrapv -Wconversion
|
|
|
|
+CFLAGS :=-Wextra -Wall -pedantic -fPIC -O0 -fwrapv -Wconversion
|
|
|
|
+CPPFLAGS :=
|
|
|
|
LDFLAGS +=-Wl,-z,relro,-z,now -lpthread
|
|
|
|
|
2023-04-27 02:59:22 +01:00
|
|
|
# Enable internal timer support
|