tools: env: enable PIC for static library
PATCH 1/1 tools: env: enable PIC for static library
External projects wanting to embed the static library needs it to be position independent.
Signed-off-by Martin Hundebøll <[email protected]>
--- tools/env/Makefile | 1 + 1 file changed, 1 insertion(+)
tools/env/Makefile +1 -0
@@ -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