Skip to content

Commit

Permalink
Merge pull request #17 from oxen-io/fpic
Browse files Browse the repository at this point in the history
-fPIC for RLPValue
  • Loading branch information
darcys22 authored Apr 29, 2024
2 parents da8b670 + efd4885 commit c056684
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion external/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c056684

Please sign in to comment.