diff options
Diffstat (limited to 'main/jitterentropy-library/01-disable-gcc-optimisation.patch')
-rw-r--r-- | main/jitterentropy-library/01-disable-gcc-optimisation.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/main/jitterentropy-library/01-disable-gcc-optimisation.patch b/main/jitterentropy-library/01-disable-gcc-optimisation.patch new file mode 100644 index 00000000000..cc129c58be8 --- /dev/null +++ b/main/jitterentropy-library/01-disable-gcc-optimisation.patch @@ -0,0 +1,26 @@ +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 +@@ -4,7 +4,8 @@ + #Hardening + ENABLE_STACK_PROTECTOR ?= 1 + 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 + + # Enable internal timer support |