Skip to content

Commit f09ddd0

Browse files
Update build_adventurecoin_ubuntu.sh
1 parent f769dc2 commit f09ddd0

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

build_adventurecoin_ubuntu.sh

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ cd ../../
7676
# --------------------------
7777
if [ ! -d "AdventureCoin" ]; then
7878
echo -e "${GREEN}>>> Cloning AdventureCoin...${RESET}"
79-
git clone https://github.com/AdventureCoin-ADVC/AdventureCoin.git
79+
# git clone https://github.com/AdventureCoin-ADVC/AdventureCoin.git
80+
git clone https://github.com/CryptoDevelopmentServices/AdventureCoin.git
8081
else
8182
echo -e "${GREEN}>>> Updating AdventureCoin...${RESET}"
8283
cd AdventureCoin && git pull && cd ..
@@ -90,6 +91,19 @@ cd AdventureCoin
9091

9192
chmod +x share/genbuild.sh
9293
chmod +x autogen.sh
94+
95+
# --------------------------
96+
# Detect GCC version and apply fixes
97+
# --------------------------
98+
GCC_VER=$($CXX -dumpversion | cut -d. -f1)
99+
echo -e "${GREEN}>>> Detected g++ version: $GCC_VER ${RESET}"
100+
101+
if [ "$GCC_VER" -ge 13 ]; then
102+
echo -e "${CYAN}Applying GCC 13+ compatibility flags...${RESET}"
103+
export CXXFLAGS="$CXXFLAGS -std=c++17 -DADVC_GCC13_FIX"
104+
fi
105+
106+
93107
./autogen.sh
94108

95109
CONFIGURE_ARGS="LDFLAGS=-L${BDB_PREFIX}/lib/ CPPFLAGS=-I${BDB_PREFIX}/include/"

0 commit comments

Comments
 (0)