Adding this flag avoids the following link error: libsparse.a(hashtable.o): In function `create_hashtable': /home/andmur01/smatch/cwchash/hashtable.c:51: undefined reference to `ceilf' libsparse.a(hashtable.o): In function `hashtable_expand': /home/andmur01/smatch/cwchash/hashtable.c:124: undefined reference to `ceilf' collect2: error: ld returned 1 exit status Signed-off-by: Andrew Murray <andrew.murray@xxxxxxx> --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index dc37ae2fe566..4da1ecbbdbb5 100644 --- a/Makefile +++ b/Makefile @@ -252,7 +252,7 @@ SMATCH_SCRIPTS=smatch_scripts/add_gfp_to_allocations.sh \ smatch_scripts/trace_params.pl smatch_scripts/unlocked_paths.pl \ smatch_scripts/whitespace_only.sh smatch_scripts/wine_checker.sh \ -SMATCH_LDFLAGS := -lsqlite3 -lssl -lcrypto +SMATCH_LDFLAGS := -lsqlite3 -lssl -lcrypto -lm smatch: smatch.o $(SMATCH_FILES) $(SMATCH_CHECKS) $(LIBS) $(QUIET_LINK)$(LD) -o $@ $< $(SMATCH_FILES) $(SMATCH_CHECKS) $(LIBS) $(SMATCH_LDFLAGS) -- 2.21.0