Skip to content

Commit 82c1667

Browse files
Update build_aegisum_mac.sh
1 parent ec31e39 commit 82c1667

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

build_aegisum_mac.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,23 @@ export CXXFLAGS="-std=c++14 -Wno-deprecated-builtins"
217217
export LDFLAGS="$(echo "$LDFLAGS" | sed 's|/opt/local[^ ]*||g')"
218218
export 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
# --------------------------

0 commit comments

Comments
 (0)