From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from foss.arm.com ([217.140.110.172]:38098 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727876AbfJGPfy (ORCPT ); Mon, 7 Oct 2019 11:35:54 -0400 From: Andrew Murray Subject: [RFC PATCH 1/7] build: Add '-lm' build flag Date: Mon, 7 Oct 2019 16:35:39 +0100 Message-Id: <20191007153545.23231-2-andrew.murray@arm.com> In-Reply-To: <20191007153545.23231-1-andrew.murray@arm.com> References: <20191007153545.23231-1-andrew.murray@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: smatch-owner@vger.kernel.org List-ID: To: Dan Carpenter , Catalin.Marinas@arm.com Cc: smatch@vger.kernel.org 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 --- 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