diff mbox series

tools: env: enable PIC for static library

Message ID 20200206145355.2161120-1-martin@geanix.com
State New
Headers show
Series tools: env: enable PIC for static library | expand

Commit Message

Martin Hundebøll Feb. 6, 2020, 2:53 p.m. UTC
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 mbox series

Patch

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)