From efd4885fe3501be6a1fc30d10721159bfca8885f Mon Sep 17 00:00:00 2001 From: Sean Darcy Date: Mon, 29 Apr 2024 10:31:48 +1000 Subject: [PATCH] -fPIC for RLPValue --- external/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/external/CMakeLists.txt b/external/CMakeLists.txt index c9cd41b..a575594 100644 --- a/external/CMakeLists.txt +++ b/external/CMakeLists.txt @@ -49,7 +49,8 @@ ExternalProject_Add( PREFIX ${RLP_BIN} SOURCE_DIR ${RLP_DIR} DOWNLOAD_COMMAND cd ${RLP_DIR} && git clean -dfX - CONFIGURE_COMMAND bash -c ${RLP_DIR}/autogen.sh && bash -c ${RLP_DIR}/configure --srcdir=${RLP_DIR} --disable-shared --enable-static=yes + CONFIGURE_COMMAND bash -c "CFLAGS='-fPIC' CXXFLAGS='-fPIC' ${RLP_DIR}/autogen.sh" && + bash -c "CFLAGS='-fPIC' CXXFLAGS='-fPIC' ${RLP_DIR}/configure --srcdir=${RLP_DIR} --disable-shared --enable-static=yes" PATCH_COMMAND git checkout -- src/InfInt.h && git apply --ignore-whitespace ${CMAKE_CURRENT_SOURCE_DIR}/../cmake/rlpvalue-001-infint-missing-limits-h.patch BUILD_COMMAND make