mirror of
https://git.rtems.org/rtems-source-builder
synced 2024-10-09 07:15:10 +08:00
parent
f3c5dbdce6
commit
4358a038c6
@ -19,6 +19,15 @@ URL: https://gmplib.org/
|
|||||||
#
|
#
|
||||||
%source set gmp https://gcc.gnu.org/pub/gcc/infrastructure/gmp-%{gmp_version}.tar.bz2
|
%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.
|
# Prepare the source code.
|
||||||
#
|
#
|
||||||
@ -44,7 +53,8 @@ URL: https://gmplib.org/
|
|||||||
--exec-prefix=%{_exec_prefix} \
|
--exec-prefix=%{_exec_prefix} \
|
||||||
--includedir=%{_includedir} --libdir=%{_libdir} \
|
--includedir=%{_includedir} --libdir=%{_libdir} \
|
||||||
--mandir=%{_mandir} --infodir=%{_infodir} \
|
--mandir=%{_mandir} --infodir=%{_infodir} \
|
||||||
--disable-shared
|
--disable-shared \
|
||||||
|
%{gmp_extra_options}
|
||||||
|
|
||||||
%{__make} %{?_smp_mflags} all
|
%{__make} %{?_smp_mflags} all
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user