From 47e40842a70e2e7f679c9d7ac4c9748c510eedd0 Mon Sep 17 00:00:00 2001 From: Fotis Panagiotopoulos Date: Wed, 29 Jun 2022 11:34:45 +0300 Subject: [PATCH] Added -fPIC option when building jlink-nuttx.so. --- tools/Makefile.host | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/Makefile.host b/tools/Makefile.host index fdc06a4606e..938a6e9d4e5 100644 --- a/tools/Makefile.host +++ b/tools/Makefile.host @@ -228,7 +228,7 @@ endif # jlink-nuttx - Create jlink GDBServer nuttx plugin jlink-nuttx$(HOSTDYNEXT): jlink-nuttx.c - $(Q) $(HOSTCC) $(HOSTCFLAGS) -shared jlink-nuttx.c -o jlink-nuttx$(HOSTDYNEXT) + $(Q) $(HOSTCC) $(HOSTCFLAGS) -shared -fPIC jlink-nuttx.c -o jlink-nuttx$(HOSTDYNEXT) ifdef HOSTDYNEXT jlink-nuttx: jlink-nuttx$(HOSTDYNEXT)