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