Powered by Linux
[RFC PATCH 1/7] build: Add '-lm' build flag — Semantic Matching Tool

[RFC PATCH 1/7] build: Add '-lm' build flag

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux