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

6 Feb
2020
6 Feb
'20
3:53 p.m.
External projects wanting to embed the static library needs it to be position independent.
Signed-off-by: Martin Hundebøll martin@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
1921
Age (days ago)
1921
Last active (days ago)
0 comments
1 participants
participants (1)
-
Martin Hundebøll