From patchwork Thu Feb 6 14:53:55 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Martin_Hundeb=C3=B8ll?= X-Patchwork-Id: 236014 List-Id: U-Boot discussion From: martin at geanix.com (=?UTF-8?q?Martin=20Hundeb=C3=B8ll?=) Date: Thu, 6 Feb 2020 15:53:55 +0100 Subject: [PATCH] tools: env: enable PIC for static library Message-ID: <20200206145355.2161120-1-martin@geanix.com> External projects wanting to embed the static library needs it to be position independent. Signed-off-by: Martin Hundebøll --- 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)