forked from pool/smatch
OBS-URL: https://build.opensuse.org/package/show/devel:tools:statica/smatch?expand=0&rev=27
30 lines
909 B
Diff
30 lines
909 B
Diff
From: Jiri Slaby <jslaby@suse.cz>
|
|
Date: Mon, 9 May 2022 11:23:44 +0200
|
|
Subject: Makefile: use CFLAGS when linking
|
|
Patch-mainline: no
|
|
References: build improvement
|
|
|
|
So that everything is built properly.
|
|
|
|
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
|
|
---
|
|
Makefile | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/Makefile b/Makefile
|
|
index d0b109f5..be678e7c 100644
|
|
--- a/Makefile
|
|
+++ b/Makefile
|
|
@@ -383,7 +383,7 @@ SMATCH_SCRIPTS=smatch_scripts/add_gfp_to_allocations.sh \
|
|
SMATCH_LDFLAGS := -lsqlite3 -lssl -lcrypto -lm
|
|
|
|
smatch: smatch.o $(SMATCH_OBJS) $(SMATCH_CHECKS) $(LIBS)
|
|
- $(Q)$(LD) -o $@ $< $(SMATCH_OBJS) $(SMATCH_CHECKS) $(LIBS) $(SMATCH_LDFLAGS)
|
|
+ $(Q)$(LD) $(CFLAGS) -o $@ $< $(SMATCH_OBJS) $(SMATCH_CHECKS) $(LIBS) $(SMATCH_LDFLAGS)
|
|
|
|
smatch_data/db/sm_hash: sm_hash.o $(SMATCH_OBJS)
|
|
$(Q)$(LD) -o smatch_data/db/sm_hash sm_hash.o smatch_hash.o $(SMATCH_LDFLAGS)
|
|
--
|
|
2.35.3
|
|
|