new cross target: arm-openmamba-linux-gnueabihf [release 2.21-3mamba;Sun Apr 12 2015]

This commit is contained in:
Silvan Calarco 2024-01-05 23:07:55 +01:00
parent 31a49ad4d6
commit ab9ba0c0f1

View File

@ -108,7 +108,7 @@
Name: glibc
Version: 2.21
Release: 2mamba
Release: 3mamba
Summary: The GNU libc libraries
Group: System/Libraries
Vendor: openmamba
@ -385,7 +385,13 @@ case %{target_cpu} in
;;
arm)
platform_includes=asm-arm
#abi=%{_target_platform}
#abi=`echo ${abi/*-}`
#if [ "$abi" = "gnueabihf" ]; then
# buildflags="-g -O3 -fgnu89-inline -mfloat-abi=hard"
#else
buildflags="-g -O3 -fgnu89-inline"
#fi
;;
x86_64)
platform_includes=asm-x86_64
@ -484,6 +490,11 @@ function build_glibc() {
# echo "libc_cv_c_cleanup=yes" >> config.cache
# %endif
%if "%{?stage2}" == "1"
# there is no --disable-ssp option
echo "libc_cv_ssp=no" > config.cache
%endif
eval $PRECONFIG_OPTS ../%{name}-%{version}/configure \
--prefix=%{glibc_prefix} \
--infodir=%{_infodir} \
@ -495,6 +506,9 @@ function build_glibc() {
--build=%{_build} \
%if "%{?stage1}" != "1"
--host=%{_target_platform} \
%endif
%if "%{?stage2}"
--cache-file=config.cache \
%endif
$CONFIG_OPTS \
CFLAGS=\"$buildflags\ -Wl,--build-id\"
@ -509,9 +523,10 @@ function build_glibc() {
%if "%{?stage1}" != "1"
make %{_smp_mflags} -r %PARALLELMFLAGS=-s slibdir=%{slibdir} \
%if "%{_target_platform}" != "%{_host}"
%if "%{?stage2}" != "1"
LDLIBS-resolv.so+="-lssp" LDFLAGS-nscd+="-lssp"
%endif
%endif
#CFLAGS="$buildflags"
%endif
)
@ -905,6 +920,9 @@ exit 0
%endif
%changelog
* Sun Apr 12 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 2.21-3mamba
- new cross target: arm-openmamba-linux-gnueabihf
* Thu Mar 26 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 2.21-2mamba
- patch to prevent exhaustion of tls slots (vlc), see https://bugzilla.redhat.com/show_bug.cgi?id=1124987