From: Andy Shevchenko Date: Mon, 3 Sep 2018 09:08:10 +0000 (+0300) Subject: sandbox: Build with -fPIC X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=e599c4e7d8e1bd6e923838a77d01271935709cfd;p=u-boot.git sandbox: Build with -fPIC Sandbox is not a real bootloader and it does require a position independent code to be supported. Thus, build it with -fPIC explicitly. Fixes: 16940f720f9b ("Makefile: Don't generate position independent code") Signed-off-by: Andy Shevchenko Reported-by: Simon Glass Tested-by: Bin Meng Acked-by: Simon Glass Tested-by: Simon Glass --- diff --git a/arch/sandbox/config.mk b/arch/sandbox/config.mk index 2babcde881..95f9e3ff63 100644 --- a/arch/sandbox/config.mk +++ b/arch/sandbox/config.mk @@ -3,6 +3,7 @@ PLATFORM_CPPFLAGS += -D__SANDBOX__ -U_FORTIFY_SOURCE PLATFORM_CPPFLAGS += -DCONFIG_ARCH_MAP_SYSMEM +PLATFORM_CPPFLAGS += -fPIC PLATFORM_LIBS += -lrt # Define this to avoid linking with SDL, which requires SDL libraries