mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-19 14:56:46 +02:00
26 lines
948 B
Diff
26 lines
948 B
Diff
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
|