blob: 98b85a2711a6a238ed937c3ab68c8641746cd0a8 [file] [log] [blame]
Yulong Peif9a17482023-01-05 02:26:32 +00001From e83f80443a2f23a68037bf4c7ba16b3723d193a4 Mon Sep 17 00:00:00 2001
2From: Yulong <yulong.pei@intel.com>
3Date: Tue, 3 Jan 2023 14:16:17 +0000
4Subject: [PATCH] libxdp: add fPIC with static lib build
5
6Signed-off-by: Yulong <yulong.pei@intel.com>
7---
8 lib/libxdp/Makefile | 2 +-
9 1 file changed, 1 insertion(+), 1 deletion(-)
10
11diff --git a/lib/libxdp/Makefile b/lib/libxdp/Makefile
12index 358b751..a9bb414 100644
13--- a/lib/libxdp/Makefile
14+++ b/lib/libxdp/Makefile
15@@ -88,7 +88,7 @@ $(SHARED_OBJDIR):
16 $(Q)mkdir -p $(SHARED_OBJDIR)
17
18 $(STATIC_OBJDIR)/%.o: %.c $(EXTRA_LIB_DEPS) | $(STATIC_OBJDIR)
19- $(QUIET_CC)$(CC) $(CFLAGS) $(CPPFLAGS) -D LIBXDP_STATIC=1 -Wall -I../../headers -c $< -o $@
20+ $(QUIET_CC)$(CC) $(CFLAGS) $(CPPFLAGS) -fPIC -D LIBXDP_STATIC=1 -Wall -I../../headers -c $< -o $@
21
22 $(SHARED_OBJDIR)/%.o: %.c $(EXTRA_LIB_DEPS) | $(SHARED_OBJDIR)
23 $(QUIET_CC)$(CC) $(CFLAGS) $(CPPFLAGS) $(SHARED_CFLAGS) -Wall -I../../headers -c $< -o $@
24--
252.25.1
26