aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2024-04-13 11:17:57 +0200
committerMattias Andrée <maandree@kth.se>2024-04-13 11:17:57 +0200
commitbbad2aa1db028c33728c1a49a517882756ef3c13 (patch)
treee94b2362c4dad00a223487fca8cc84e7a4bab789
parentAdd libsimple_abspath with e- and en- versions (diff)
downloadlibsimple-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.mk2
-rw-r--r--libsimple/random.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/config.mk b/config.mk
index c9919fd..9bafe24 100644
--- a/config.mk
+++ b/config.mk
@@ -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);