From bbad2aa1db028c33728c1a49a517882756ef3c13 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 13 Apr 2024 11:17:57 +0200 Subject: Add -lm MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- config.mk | 2 +- libsimple/random.h | 2 +- 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); -- cgit v1.2.3-70-g09d2