Skip to contentSkip to conversation

tools: env: enable PIC for static library

PATCH New Martin Hundebøll 1 participant 1 message Feb 6, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tools: env: enable PIC for static library

External projects wanting to embed the static library needs it to be position independent.

---
 tools/env/Makefile | 1 +
 1 file changed, 1 insertion(+)
tools/env/Makefile +1 -0
index b627796e94..2444269de7 100644
@@ -13,6 +13,7 @@ HOST_EXTRACFLAGS  = -I$(srctree)/tools \
 		$(patsubst -I%,-idirafter%, $(filter -I%, $(UBOOTINCLUDE))) \
 		-idirafter $(srctree)/tools/env \
 		-DUSE_HOSTCC \
+		-fPIC \
 		-DTEXT_BASE=$(TEXT_BASE)
 
 ifeq ($(MTD_VERSION),old)
Signature · 1 line
2.25.0