From: Matthias Schiffer Date: Tue, 10 Jan 2017 21:10:59 +0000 (+0100) Subject: tools: libressl: always build as PIC X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=96a940308;p=openwrt%2Fstaging%2F981213.git 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 --- diff --git a/tools/libressl/Makefile b/tools/libressl/Makefile index 1e3a6f80fb..be6a48be28 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))