File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -217,6 +217,23 @@ export CXXFLAGS="-std=c++14 -Wno-deprecated-builtins"
217217export LDFLAGS=" $( echo " $LDFLAGS " | sed ' s|/opt/local[^ ]*||g' ) "
218218export CPPFLAGS=" $( echo " $CPPFLAGS " | sed ' s|/opt/local[^ ]*||g' ) "
219219
220+ # --------------------------
221+ # Patch Boost filesystem API (overwrite_if_exists -> overwrite_existing)
222+ # --------------------------
223+ echo -e " ${GREEN} >>> Patching Boost copy_option -> copy_options in wallet/bdb.cpp...${RESET} "
224+ BDB_CPP_FILE=" wallet/bdb.cpp"
225+ if grep -q " fs::copy_file.*copy_option::overwrite_if_exists" " $BDB_CPP_FILE " ; then
226+ sed -i ' ' ' s/fs::copy_option::overwrite_if_exists/fs::copy_options::overwrite_existing/g' " $BDB_CPP_FILE "
227+ echo -e " ${CYAN} ✔ Patched $BDB_CPP_FILE ${RESET} "
228+ else
229+ echo -e " ${CYAN} ✔ No patch needed for $BDB_CPP_FILE ${RESET} "
230+ fi
231+
232+ # --------------------------
233+ # Remove unsupported Clang flags
234+ # --------------------------
235+ export CXXFLAGS=" $( echo " $CXXFLAGS " | sed ' s/-fstack-clash-protection//g' ) "
236+
220237# --------------------------
221238# Configure and Build
222239# --------------------------
You can’t perform that action at this time.
0 commit comments