@@ -14,16 +14,16 @@ declare -r workdir="${PWD}"
1414declare -r revision=" $( git rev-parse --short HEAD) "
1515
1616declare -r gmp_tarball=' /tmp/gmp.tar.xz'
17- declare -r gmp_directory=' /tmp/gmp-6.3.0 '
17+ declare -r gmp_directory=' /tmp/gmp'
1818
1919declare -r mpfr_tarball=' /tmp/mpfr.tar.xz'
20- declare -r mpfr_directory=' /tmp/mpfr-4.2.2 '
20+ declare -r mpfr_directory=' /tmp/mpfr-master '
2121
2222declare -r mpc_tarball=' /tmp/mpc.tar.gz'
23- declare -r mpc_directory=' /tmp/mpc-1.3.1 '
23+ declare -r mpc_directory=' /tmp/mpc-master '
2424
2525declare -r isl_tarball=' /tmp/isl.tar.xz'
26- declare -r isl_directory=' /tmp/isl-0.27 '
26+ declare -r isl_directory=' /tmp/isl-master '
2727
2828declare -r binutils_tarball=' /tmp/binutils.tar.xz'
2929declare -r binutils_directory=' /tmp/binutils'
@@ -90,14 +90,14 @@ declare -r \
9090
9191if ! [ -f " ${gmp_tarball} " ]; then
9292 curl \
93- --url ' https://gnu.mirror.constant. com/gmp/gmp-6.3.0 .tar.xz' \
93+ --url ' https://github. com/AmanoTeam/gmplib-snapshots/releases/latest/download/gmp .tar.xz' \
9494 --retry ' 30' \
9595 --retry-all-errors \
9696 --retry-delay ' 0' \
9797 --retry-max-time ' 0' \
98+ --show-error \
9899 --location \
99100 --silent \
100- --show-error \
101101 --output " ${gmp_tarball} "
102102
103103 tar \
@@ -106,70 +106,91 @@ if ! [ -f "${gmp_tarball}" ]; then
106106 --file=" ${gmp_tarball} "
107107
108108 patch --directory=" ${gmp_directory} " --strip=' 1' --input=" ${workdir} /submodules/obggcc/patches/0001-Remove-hardcoded-RPATH-and-versioned-SONAME-from-libgmp.patch"
109+
110+ sed \
111+ --in-place \
112+ ' s/-Xlinker --out-implib -Xlinker $lib/-Xlinker --out-implib -Xlinker $lib.a/g' \
113+ " ${gmp_directory} /configure"
109114fi
110115
111116if ! [ -f " ${mpfr_tarball} " ]; then
112117 curl \
113- --url ' https://gnu.mirror.constant. com/mpfr /mpfr-4.2.2. tar.xz ' \
118+ --url ' https://github. com/AmanoTeam /mpfr/archive/master. tar.gz ' \
114119 --retry ' 30' \
115120 --retry-all-errors \
116121 --retry-delay ' 0' \
117122 --retry-max-time ' 0' \
123+ --show-error \
118124 --location \
119125 --silent \
120- --show-error \
121126 --output " ${mpfr_tarball} "
122127
123128 tar \
124129 --directory=" $( dirname " ${mpfr_directory} " ) " \
125130 --extract \
126131 --file=" ${mpfr_tarball} "
127132
133+ cd " ${mpfr_directory} "
134+ autoreconf --force --install
135+
128136 patch --directory=" ${mpfr_directory} " --strip=' 1' --input=" ${workdir} /submodules/obggcc/patches/0001-Remove-hardcoded-RPATH-and-versioned-SONAME-from-libmpfr.patch"
129137fi
130138
131139if ! [ -f " ${mpc_tarball} " ]; then
132140 curl \
133- --url ' https://gnu.mirror.constant. com/mpc /mpc-1.3.1 .tar.gz' \
141+ --url ' https://github. com/AmanoTeam /mpc/archive/master .tar.gz' \
134142 --retry ' 30' \
135143 --retry-all-errors \
136144 --retry-delay ' 0' \
137145 --retry-max-time ' 0' \
146+ --show-error \
138147 --location \
139148 --silent \
140- --show-error \
141149 --output " ${mpc_tarball} "
142150
143151 tar \
144152 --directory=" $( dirname " ${mpc_directory} " ) " \
145153 --extract \
146154 --file=" ${mpc_tarball} "
147155
156+ cd " ${mpc_directory} "
157+ autoreconf --force --install
158+
148159 patch --directory=" ${mpc_directory} " --strip=' 1' --input=" ${workdir} /submodules/obggcc/patches/0001-Remove-hardcoded-RPATH-and-versioned-SONAME-from-libmpc.patch"
149160fi
150161
151162if ! [ -f " ${isl_tarball} " ]; then
152163 curl \
153- --url ' https://deb.debian.org/debian/pool/main/i/ isl/isl_0.27.orig. tar.xz ' \
164+ --url ' https://github.com/AmanoTeam/ isl/archive/master. tar.gz ' \
154165 --retry ' 30' \
155166 --retry-all-errors \
156167 --retry-delay ' 0' \
157168 --retry-max-time ' 0' \
169+ --show-error \
158170 --location \
159171 --silent \
160- --show-error \
161172 --output " ${isl_tarball} "
162173
163174 tar \
164175 --directory=" $( dirname " ${isl_directory} " ) " \
165176 --extract \
166177 --file=" ${isl_tarball} "
167178
179+ cd " ${isl_directory} "
180+ autoreconf --force --install
181+
168182 patch --directory=" ${isl_directory} " --strip=' 1' --input=" ${workdir} /submodules/obggcc/patches/0001-Remove-hardcoded-RPATH-and-versioned-SONAME-from-libisl.patch"
169183
170184 for name in " ${isl_directory} /isl_test" * ; do
171185 echo ' int main() {}' > " ${name} "
172186 done
187+
188+ sed \
189+ --in-place \
190+ --regexp-extended \
191+ ' s/(allow_undefined)=.*$/\1=no/' \
192+ " ${isl_directory} /ltmain.sh" \
193+ " ${isl_directory} /interface/ltmain.sh"
173194fi
174195
175196if ! [ -f " ${binutils_tarball} " ]; then
0 commit comments