Added -fPIC option when building jlink-nuttx.so.

This commit is contained in:
Fotis Panagiotopoulos 2022-06-29 11:34:45 +03:00 committed by Petro Karashchenko
parent bc6b3f34c8
commit 47e40842a7
1 changed files with 1 additions and 1 deletions

View File

@ -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)