aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2023-07-02 16:02:45 +0200
committerMattias Andrée <maandree@kth.se>2023-07-02 16:02:45 +0200
commitd8cdb1d0a3a5d0a67455bbd7617913c9b3eace99 (patch)
treee834ca1a37cd68f0042a0775603a6cc5b317440a
parentUpdate TODO (diff)
downloadlibkeccak-d8cdb1d0a3a5d0a67455bbd7617913c9b3eace99.tar.gz
libkeccak-d8cdb1d0a3a5d0a67455bbd7617913c9b3eace99.tar.bz2
libkeccak-d8cdb1d0a3a5d0a67455bbd7617913c9b3eace99.tar.xz
Remove -s from LDFLAGS and -std=c99 from CFLAGS and specify CC=c99
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--config.mk6
-rw-r--r--optimised.mk8
2 files changed, 8 insertions, 6 deletions
diff --git a/config.mk b/config.mk
index 259cc07..92f93e6 100644
--- a/config.mk
+++ b/config.mk
@@ -1,11 +1,11 @@
PREFIX = /usr
MANPREFIX = $(PREFIX)/share/man
-CC = cc
+CC = c99
-CFLAGS = -std=c99 -O3
CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700
-LDFLAGS = -s
+CFLAGS = -O3
+LDFLAGS =
# You can add -DALLOCA_LIMIT=# to CPPFLAGS, where # is a size_t
# value, to put a limit on how large allocation the library is
diff --git a/optimised.mk b/optimised.mk
index 3891e85..272fda2 100644
--- a/optimised.mk
+++ b/optimised.mk
@@ -1,4 +1,4 @@
-PREFIX = /usr/local
+PREFIX = /usr
MANPREFIX = $(PREFIX)/share/man
# These have not been extensively tested but appear to:
@@ -6,8 +6,10 @@ MANPREFIX = $(PREFIX)/share/man
# * Slowdown the library's performance
# -flto -flto-compression-level -flto-partition={1to1,balanced,mix,none} -flto-report -flto-report-wpa -fwpa
CCOPTIMISE = -falign-functions=0 -fkeep-inline-functions -fmerge-all-constants -Ofast
-LDOPTIMISE = -s
+LDOPTIMISE =
-CFLAGS = -std=c99 -Wall -Wextra $(CCOPTIMISE)
+CC = c99
+
+CFLAGS = -Wall -Wextra $(CCOPTIMISE)
CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700
LDFLAGS = $(LDOPTIMISE)