diff options
author | Mattias Andrée <maandree@kth.se> | 2024-04-13 11:17:57 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2024-04-13 11:17:57 +0200 |
commit | bbad2aa1db028c33728c1a49a517882756ef3c13 (patch) | |
tree | e94b2362c4dad00a223487fca8cc84e7a4bab789 | |
parent | Add libsimple_abspath with e- and en- versions (diff) | |
download | libsimple-bbad2aa1db028c33728c1a49a517882756ef3c13.tar.gz libsimple-bbad2aa1db028c33728c1a49a517882756ef3c13.tar.bz2 libsimple-bbad2aa1db028c33728c1a49a517882756ef3c13.tar.xz |
Add -lm
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | config.mk | 2 | ||||
-rw-r--r-- | libsimple/random.h | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -5,4 +5,4 @@ CC = cc CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700 CFLAGS = -std=c11 -Wall -Wextra -O2 -LDFLAGS = -s +LDFLAGS = -s -lm diff --git a/libsimple/random.h b/libsimple/random.h index a786661..a3b1739 100644 --- a/libsimple/random.h +++ b/libsimple/random.h @@ -22,7 +22,7 @@ libsimple_srand(void) /* TODO add man page */ } -/* TODO doc, man */ +/* TODO doc, man (libsimple_random_float requires -lm) */ uintmax_t libsimple_random_bits(size_t bits, void *unused); uintmax_t libsimple_random_unsigned(uintmax_t (*rng)(size_t bits, void *user), void *user, uintmax_t min, uintmax_t max); intmax_t libsimple_random_signed(uintmax_t (*rng)(size_t bits, void *user), void *user, intmax_t min, intmax_t max); |