diff options
author | Mattias Andrée <maandree@kth.se> | 2022-07-07 15:32:34 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2022-07-07 15:32:34 +0200 |
commit | c44852846418d687027912d4150404feed0161f9 (patch) | |
tree | 8e08a8420179dfe2909c9a77573c5f537a85818c /config.mk | |
parent | Don't marshal w (diff) | |
download | libsha2-c44852846418d687027912d4150404feed0161f9.tar.gz libsha2-c44852846418d687027912d4150404feed0161f9.tar.bz2 libsha2-c44852846418d687027912d4150404feed0161f9.tar.xz |
Use malloc by default but allow bounded alloca
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | config.mk | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -6,3 +6,9 @@ CC = c99 CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700 CFLAGS = -Wall -O3 LDFLAGS = -s + +# You can add -DALLOCA_LIMIT=# to CPPFLAGS, where # is a size_t +# value, to put a limit on how large allocation the library is +# allowed to make with alloca(3). For buffers that can have any +# size this limit will be used if it wants to allocate a larger +# buffer. Choose 0 to use malloc(3) instead of alloca(3). |