Yulong Pei | f9a1748 | 2023-01-05 02:26:32 +0000 | [diff] [blame] | 1 | From e83f80443a2f23a68037bf4c7ba16b3723d193a4 Mon Sep 17 00:00:00 2001 |
| 2 | From: Yulong <yulong.pei@intel.com> |
| 3 | Date: Tue, 3 Jan 2023 14:16:17 +0000 |
| 4 | Subject: [PATCH] libxdp: add fPIC with static lib build |
| 5 | |
| 6 | Signed-off-by: Yulong <yulong.pei@intel.com> |
| 7 | --- |
| 8 | lib/libxdp/Makefile | 2 +- |
| 9 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 10 | |
| 11 | diff --git a/lib/libxdp/Makefile b/lib/libxdp/Makefile |
| 12 | index 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 | -- |
| 25 | 2.25.1 |
| 26 | |