[rtems-source-builder commit] devel/gmp: Disable assemble builds on MacOS AARCH64

Chris Johns chrisj at rtems.org
Wed Apr 5 22:33:26 UTC 2023


Module:    rtems-source-builder
Branch:    master
Commit:    4358a038c62a21a59ce712b08c003b56c8ae2ab0
Changeset: http://git.rtems.org/rtems-source-builder/commit/?id=4358a038c62a21a59ce712b08c003b56c8ae2ab0

Author:    Chris Johns <chris at contemporary.net.au>
Date:      Tue Apr  4 13:45:04 2023 +1000

devel/gmp: Disable assemble builds on MacOS AARCH64

Updates #4892

---

 source-builder/config/gmp.cfg | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/source-builder/config/gmp.cfg b/source-builder/config/gmp.cfg
index ffd3b20..4e8d674 100644
--- a/source-builder/config/gmp.cfg
+++ b/source-builder/config/gmp.cfg
@@ -19,6 +19,15 @@ URL: 	   https://gmplib.org/
 #
 %source set gmp https://gcc.gnu.org/pub/gcc/infrastructure/gmp-%{gmp_version}.tar.bz2
 
+%define gmp_extra_options %{nil}
+
+#
+# Do not use assembler if MacOS AARCH64
+#
+%if %{_host_os} == darwin && %{_host_arch} == arm64
+ %define gmp_extra_options %{gmp_extra_options} --disable-assembly
+%endif
+
 #
 # Prepare the source code.
 #
@@ -44,7 +53,8 @@ URL: 	   https://gmplib.org/
     --exec-prefix=%{_exec_prefix} \
     --includedir=%{_includedir} --libdir=%{_libdir} \
     --mandir=%{_mandir} --infodir=%{_infodir} \
-    --disable-shared
+    --disable-shared \
+    %{gmp_extra_options}
 
   %{__make} %{?_smp_mflags} all
 



More information about the vc mailing list