summaryrefslogtreecommitdiffstats
path: root/source-builder/config/gmp.cfg
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2023-11-24 15:32:58 +1100
committerChris Johns <chrisj@rtems.org>2023-11-28 18:17:11 +1100
commit9e57632befb687e0d5306af47dabcec19cb5d50e (patch)
tree1d9a50446aee8a1c4692010aeb0ed3b7f324f47a /source-builder/config/gmp.cfg
parentrtems/rtems-tools: Update with C++17 and Python 3.12 fixes (diff)
downloadrtems-source-builder-9e57632befb687e0d5306af47dabcec19cb5d50e.tar.bz2
6: Fix gcc-13 support for MacOS
Update #4921
Diffstat (limited to '')
-rw-r--r--source-builder/config/gmp.cfg17
1 files changed, 11 insertions, 6 deletions
diff --git a/source-builder/config/gmp.cfg b/source-builder/config/gmp.cfg
index 4e8d674..352caef 100644
--- a/source-builder/config/gmp.cfg
+++ b/source-builder/config/gmp.cfg
@@ -15,17 +15,22 @@ Release: %{release}
URL: https://gmplib.org/
#
-# Source
+# Allow the user to override the UURL
#
-%source set gmp https://gcc.gnu.org/pub/gcc/infrastructure/gmp-%{gmp_version}.tar.bz2
+%if %{!defined gmp_url}
+ %define gmp_url https://gmplib.org/download/gmp
+%endif
-%define gmp_extra_options %{nil}
+#
+# Source
+#
+%source set gmp %{gmp_url}/gmp-%{gmp_version}.tar.bz2
#
-# Do not use assembler if MacOS AARCH64
+# Allow extra options
#
-%if %{_host_os} == darwin && %{_host_arch} == arm64
- %define gmp_extra_options %{gmp_extra_options} --disable-assembly
+%if %{!defined gmp_extra_options}
+ %define gmp_extra_options %{nil}
%endif
#