diff --git a/.drone.yml b/.drone.yml index b2c294a..478f186 100644 --- a/.drone.yml +++ b/.drone.yml @@ -15,7 +15,7 @@ steps: - sed -i 's@//.*archive.ubuntu.com@//mirror-cdn.xtom.com@g' /etc/apt/sources.list && sed -i 's@//security.ubuntu.com@//mirror-cdn.xtom.com@g' /etc/apt/sources.list - apt update && - apt install -y git make gcc g++ libgmp-dev libmpfr-dev libmpc-dev gcc-multilib + apt install -y curl git make gcc g++ libgmp-dev libmpfr-dev libmpc-dev gcc-multilib - bash build.sh environment: GITEA_ENDPOINT: https://git.m.ac diff --git a/build.sh b/build.sh index 5efc483..3901cc2 100644 --- a/build.sh +++ b/build.sh @@ -14,7 +14,7 @@ git clone -b "releases/gcc-$GCC_VERSION" --depth 1 "${GCC_GIT}" "${GCC_SRC}" # Apply patches echo "===> Applying patches..." cd ${GCC_SRC} -patch -p1 < ../patches/gcc-$GCC_VERSION.patch +patch -p1 < ${CURRENT_DIR}/patches/gcc-$GCC_VERSION.patch cd ${CURRENT_DIR} # Configure GCC