Blame SOURCES/bcc-0.20.0-libbpf-tool-don-t-ignore-LDFLAGS.patch

0fb47c
From 657f1b2049f2c7751a9d2a13abb42c409da1bb6f Mon Sep 17 00:00:00 2001
0fb47c
From: Jerome Marchand <jmarchan@redhat.com>
0fb47c
Date: Wed, 2 Jun 2021 14:23:20 +0200
0fb47c
Subject: [PATCH] libbpf-tool: don't ignore LDFLAGS
0fb47c
0fb47c
---
0fb47c
 libbpf-tools/Makefile | 2 +-
0fb47c
 1 file changed, 1 insertion(+), 1 deletion(-)
0fb47c
0fb47c
diff --git a/libbpf-tools/Makefile b/libbpf-tools/Makefile
0fb47c
index 92dcf5a5..54288380 100644
0fb47c
--- a/libbpf-tools/Makefile
0fb47c
+++ b/libbpf-tools/Makefile
0fb47c
@@ -77,7 +77,7 @@ endif
0fb47c
 
0fb47c
 $(APPS): %: $(OUTPUT)/%.o $(LIBBPF_OBJ) $(COMMON_OBJ) | $(OUTPUT)
0fb47c
 	$(call msg,BINARY,$@)
0fb47c
-	$(Q)$(CC) $(CFLAGS) $^ -lelf -lz -o $@
0fb47c
+	$(Q)$(CC) $(CFLAGS) $^ $(LDFLAGS) -lelf -lz -o $@
0fb47c
 
0fb47c
 $(patsubst %,$(OUTPUT)/%.o,$(APPS)): %.o: %.skel.h
0fb47c
 
0fb47c
-- 
0fb47c
2.31.1
0fb47c