[source] tools: libressl: always build as PIC

LEDE Commits lede-commits at lists.infradead.org
Tue Jan 10 13:27:33 PST 2017


neoraider pushed a commit to source.git, branch master:
https://git.lede-project.org/96a940308bc787fe24447ccb8d0aca0befc74736

commit 96a940308bc787fe24447ccb8d0aca0befc74736
Author: Matthias Schiffer <mschiffer at universe-factory.net>
AuthorDate: Tue Jan 10 22:10:59 2017 +0100

    tools: libressl: always build as PIC
    
    Fixes link errors for host packages like ruby like the following:
    
    /usr/bin/ld: .../staging_dir/host/lib/libcrypto.a(libcrypto_la-md5_dgst.o):
    relocation R_X86_64_PC32 against symbol `memcpy@@GLIBC_2.14' can not be used when making a shared object; recompile with -fPIC
    
    Signed-off-by: Matthias Schiffer <mschiffer at universe-factory.net>
---
 tools/libressl/Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/libressl/Makefile b/tools/libressl/Makefile
index 1e3a6f8..be6a48b 100644
--- a/tools/libressl/Makefile
+++ b/tools/libressl/Makefile
@@ -22,5 +22,6 @@ HOST_BUILD_PARALLEL:=1
 include $(INCLUDE_DIR)/host-build.mk
 
 HOST_CONFIGURE_ARGS += --disable-shared
+HOST_CFLAGS += $(FPIC)
 
 $(eval $(call HostBuild))



More information about the lede-commits mailing list