[PATCH] tools: env: enable PIC for static library

Martin Hundebøll martin at geanix.com
Thu Feb 6 15:53:55 CET 2020


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

Signed-off-by: Martin Hundebøll <martin at geanix.com>
---
 tools/env/Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/env/Makefile b/tools/env/Makefile
index b627796e94..2444269de7 100644
--- a/tools/env/Makefile
+++ b/tools/env/Makefile
@@ -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)
-- 
2.25.0



More information about the U-Boot mailing list