Message ID | 20200206145355.2161120-1-martin@geanix.com |
---|---|
State | New |
Headers | show |
Series | tools: env: enable PIC for static library | expand |
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)
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(+)