mirror of
https://github.com/flatcar/scripts.git
synced 2025-10-16 09:52:20 +02:00
sys-libs/glibc: Sync with Gentoo
It's from Gentoo commit 231dfc565596f427a5966a27c6fe85c5bdf105ea. Signed-off-by: Flatcar Buildbot <buildbot@flatcar-linux.org>
This commit is contained in:
parent
deb5d1403d
commit
ef27dad146
@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
@ -250,7 +250,7 @@ setup_target_flags() {
|
||||
[[ ${t} == "x86_64" ]] && t="x86-64"
|
||||
filter-flags '-march=*'
|
||||
# ugly, ugly, ugly. ugly.
|
||||
CFLAGS_x86=$(CFLAGS=${CFLAGS_x86} filter-flags '-march=*'; echo "${CFLAGS}")
|
||||
CFLAGS_x86=$(CFLAGS=${CFLAGS_x86}; filter-flags '-march=*'; echo "${CFLAGS}")
|
||||
export CFLAGS_x86="${CFLAGS_x86} -march=${t}"
|
||||
einfo "Auto adding -march=${t} to CFLAGS_x86 #185404"
|
||||
fi
|
||||
@ -616,7 +616,7 @@ sanity_prechecks() {
|
||||
|
||||
# ABI-specific checks follow here. Hey, we have a lot more specific conditions that
|
||||
# we test for...
|
||||
if ! is_crosscompile ; then
|
||||
if ! is_crosscompile && ! tc-is-cross-compiler ; then
|
||||
if use amd64 && use multilib && [[ ${MERGE_TYPE} != "binary" ]] ; then
|
||||
ebegin "Checking if the system can execute 32-bit binaries"
|
||||
echo 'int main(){return 0;}' > "${T}/check-ia32-emulation.c"
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
@ -293,7 +293,7 @@ setup_target_flags() {
|
||||
[[ ${t} == "x86_64" ]] && t="x86-64"
|
||||
filter-flags '-march=*'
|
||||
# ugly, ugly, ugly. ugly.
|
||||
CFLAGS_x86=$(CFLAGS=${CFLAGS_x86} filter-flags '-march=*'; echo "${CFLAGS}")
|
||||
CFLAGS_x86=$(CFLAGS=${CFLAGS_x86}; filter-flags '-march=*'; echo "${CFLAGS}")
|
||||
export CFLAGS_x86="${CFLAGS_x86} -march=${t}"
|
||||
einfo "Auto adding -march=${t} to CFLAGS_x86 #185404 (ABI=${ABI})"
|
||||
fi
|
||||
@ -652,7 +652,7 @@ sanity_prechecks() {
|
||||
|
||||
# ABI-specific checks follow here. Hey, we have a lot more specific conditions that
|
||||
# we test for...
|
||||
if ! is_crosscompile ; then
|
||||
if ! is_crosscompile && ! tc-is-cross-compiler ; then
|
||||
if use amd64 && use multilib && [[ ${MERGE_TYPE} != "binary" ]] ; then
|
||||
ebegin "Checking if the system can execute 32-bit binaries"
|
||||
echo 'int main(){return 0;}' > "${T}/check-ia32-emulation.c"
|
||||
|
@ -310,7 +310,7 @@ setup_target_flags() {
|
||||
[[ ${t} == "x86_64" ]] && t="x86-64"
|
||||
filter-flags '-march=*'
|
||||
# ugly, ugly, ugly. ugly.
|
||||
CFLAGS_x86=$(CFLAGS=${CFLAGS_x86} filter-flags '-march=*'; echo "${CFLAGS}")
|
||||
CFLAGS_x86=$(CFLAGS=${CFLAGS_x86}; filter-flags '-march=*'; echo "${CFLAGS}")
|
||||
export CFLAGS_x86="${CFLAGS_x86} -march=${t}"
|
||||
einfo "Auto adding -march=${t} to CFLAGS_x86 #185404 (ABI=${ABI})"
|
||||
fi
|
||||
@ -669,7 +669,7 @@ sanity_prechecks() {
|
||||
|
||||
# ABI-specific checks follow here. Hey, we have a lot more specific conditions that
|
||||
# we test for...
|
||||
if ! is_crosscompile ; then
|
||||
if ! is_crosscompile && ! tc-is-cross-compiler ; then
|
||||
if use amd64 && use multilib && [[ ${MERGE_TYPE} != "binary" ]] ; then
|
||||
ebegin "Checking if the system can execute 32-bit binaries"
|
||||
echo 'int main(){return 0;}' > "${T}/check-ia32-emulation.c"
|
||||
|
@ -322,7 +322,7 @@ setup_target_flags() {
|
||||
[[ ${t} == "x86_64" ]] && t="x86-64"
|
||||
filter-flags '-march=*'
|
||||
# ugly, ugly, ugly. ugly.
|
||||
CFLAGS_x86=$(CFLAGS=${CFLAGS_x86} filter-flags '-march=*'; echo "${CFLAGS}")
|
||||
CFLAGS_x86=$(CFLAGS=${CFLAGS_x86}; filter-flags '-march=*'; echo "${CFLAGS}")
|
||||
export CFLAGS_x86="${CFLAGS_x86} -march=${t}"
|
||||
einfo "Auto adding -march=${t} to CFLAGS_x86 #185404 (ABI=${ABI})"
|
||||
fi
|
||||
@ -738,7 +738,7 @@ sanity_prechecks() {
|
||||
|
||||
# ABI-specific checks follow here. Hey, we have a lot more specific conditions that
|
||||
# we test for...
|
||||
if ! is_crosscompile ; then
|
||||
if ! is_crosscompile && ! tc-is-cross-compiler ; then
|
||||
if use amd64 && use multilib && [[ ${MERGE_TYPE} != "binary" ]] ; then
|
||||
ebegin "Checking if the system can execute 32-bit binaries"
|
||||
echo 'int main(){return 0;}' > "${T}/check-ia32-emulation.c"
|
||||
|
@ -317,7 +317,7 @@ setup_target_flags() {
|
||||
[[ ${t} == "x86_64" ]] && t="x86-64"
|
||||
filter-flags '-march=*'
|
||||
# ugly, ugly, ugly. ugly.
|
||||
CFLAGS_x86=$(CFLAGS=${CFLAGS_x86} filter-flags '-march=*'; echo "${CFLAGS}")
|
||||
CFLAGS_x86=$(CFLAGS=${CFLAGS_x86}; filter-flags '-march=*'; echo "${CFLAGS}")
|
||||
export CFLAGS_x86="${CFLAGS_x86} -march=${t}"
|
||||
einfo "Auto adding -march=${t} to CFLAGS_x86 #185404 (ABI=${ABI})"
|
||||
fi
|
||||
@ -747,7 +747,7 @@ sanity_prechecks() {
|
||||
|
||||
# ABI-specific checks follow here. Hey, we have a lot more specific conditions that
|
||||
# we test for...
|
||||
if ! is_crosscompile ; then
|
||||
if ! is_crosscompile && ! tc-is-cross-compiler ; then
|
||||
if use amd64 && use multilib && [[ ${MERGE_TYPE} != "binary" ]] ; then
|
||||
ebegin "Checking if the system can execute 32-bit binaries"
|
||||
echo 'int main(){return 0;}' > "${T}/check-ia32-emulation.c"
|
||||
|
@ -329,7 +329,7 @@ setup_target_flags() {
|
||||
[[ ${t} == "x86_64" ]] && t="x86-64"
|
||||
filter-flags '-march=*'
|
||||
# ugly, ugly, ugly. ugly.
|
||||
CFLAGS_x86=$(CFLAGS=${CFLAGS_x86} filter-flags '-march=*'; echo "${CFLAGS}")
|
||||
CFLAGS_x86=$(CFLAGS=${CFLAGS_x86}; filter-flags '-march=*'; echo "${CFLAGS}")
|
||||
export CFLAGS_x86="${CFLAGS_x86} -march=${t}"
|
||||
einfo "Auto adding -march=${t} to CFLAGS_x86 #185404 (ABI=${ABI})"
|
||||
fi
|
||||
@ -766,7 +766,7 @@ sanity_prechecks() {
|
||||
|
||||
# ABI-specific checks follow here. Hey, we have a lot more specific conditions that
|
||||
# we test for...
|
||||
if ! is_crosscompile ; then
|
||||
if ! is_crosscompile && ! tc-is-cross-compiler ; then
|
||||
if use amd64 && use multilib && [[ ${MERGE_TYPE} != "binary" ]] ; then
|
||||
ebegin "Checking if the system can execute 32-bit binaries"
|
||||
echo 'int main(){return 0;}' > "${T}/check-ia32-emulation.c"
|
||||
|
@ -331,7 +331,7 @@ setup_target_flags() {
|
||||
[[ ${t} == "x86_64" ]] && t="x86-64"
|
||||
filter-flags '-march=*'
|
||||
# ugly, ugly, ugly. ugly.
|
||||
CFLAGS_x86=$(CFLAGS=${CFLAGS_x86} filter-flags '-march=*'; echo "${CFLAGS}")
|
||||
CFLAGS_x86=$(CFLAGS=${CFLAGS_x86}; filter-flags '-march=*'; echo "${CFLAGS}")
|
||||
export CFLAGS_x86="${CFLAGS_x86} -march=${t}"
|
||||
einfo "Auto adding -march=${t} to CFLAGS_x86 #185404 (ABI=${ABI})"
|
||||
fi
|
||||
@ -797,7 +797,7 @@ sanity_prechecks() {
|
||||
|
||||
# ABI-specific checks follow here. Hey, we have a lot more specific conditions that
|
||||
# we test for...
|
||||
if ! is_crosscompile ; then
|
||||
if ! is_crosscompile && ! tc-is-cross-compiler ; then
|
||||
if use amd64 && use multilib && [[ ${MERGE_TYPE} != "binary" ]] ; then
|
||||
ebegin "Checking if the system can execute 32-bit binaries"
|
||||
echo 'int main(){return 0;}' > "${T}/check-ia32-emulation.c"
|
||||
|
@ -346,7 +346,7 @@ setup_target_flags() {
|
||||
[[ ${t} == "x86_64" ]] && t="x86-64"
|
||||
filter-flags '-march=*'
|
||||
# ugly, ugly, ugly. ugly.
|
||||
CFLAGS_x86=$(CFLAGS=${CFLAGS_x86} filter-flags '-march=*'; echo "${CFLAGS}")
|
||||
CFLAGS_x86=$(CFLAGS=${CFLAGS_x86}; filter-flags '-march=*'; echo "${CFLAGS}")
|
||||
export CFLAGS_x86="${CFLAGS_x86} -march=${t}"
|
||||
einfo "Auto adding -march=${t} to CFLAGS_x86 #185404 (ABI=${ABI})"
|
||||
fi
|
||||
@ -806,7 +806,7 @@ sanity_prechecks() {
|
||||
|
||||
# ABI-specific checks follow here. Hey, we have a lot more specific conditions that
|
||||
# we test for...
|
||||
if ! is_crosscompile ; then
|
||||
if ! is_crosscompile && ! tc-is-cross-compiler ; then
|
||||
if use amd64 && use multilib && [[ ${MERGE_TYPE} != "binary" ]] ; then
|
||||
ebegin "Checking if the system can execute 32-bit binaries"
|
||||
echo 'int main(){return 0;}' > "${T}/check-ia32-emulation.c"
|
||||
|
@ -347,7 +347,7 @@ setup_target_flags() {
|
||||
[[ ${t} == "x86_64" ]] && t="x86-64"
|
||||
filter-flags '-march=*'
|
||||
# ugly, ugly, ugly. ugly.
|
||||
CFLAGS_x86=$(CFLAGS=${CFLAGS_x86} filter-flags '-march=*'; echo "${CFLAGS}")
|
||||
CFLAGS_x86=$(CFLAGS=${CFLAGS_x86}; filter-flags '-march=*'; echo "${CFLAGS}")
|
||||
export CFLAGS_x86="${CFLAGS_x86} -march=${t}"
|
||||
einfo "Auto adding -march=${t} to CFLAGS_x86 #185404 (ABI=${ABI})"
|
||||
fi
|
||||
@ -817,7 +817,7 @@ sanity_prechecks() {
|
||||
|
||||
# ABI-specific checks follow here. Hey, we have a lot more specific conditions that
|
||||
# we test for...
|
||||
if ! is_crosscompile ; then
|
||||
if ! is_crosscompile && ! tc-is-cross-compiler ; then
|
||||
if use amd64 && use multilib && [[ ${MERGE_TYPE} != "binary" ]] ; then
|
||||
ebegin "Checking if the system can execute 32-bit binaries"
|
||||
echo 'int main(){return 0;}' > "${T}/check-ia32-emulation.c"
|
||||
|
@ -363,7 +363,7 @@ setup_target_flags() {
|
||||
[[ ${t} == "x86_64" ]] && t="x86-64"
|
||||
filter-flags '-march=*'
|
||||
# ugly, ugly, ugly. ugly.
|
||||
CFLAGS_x86=$(CFLAGS=${CFLAGS_x86} filter-flags '-march=*'; echo "${CFLAGS}")
|
||||
CFLAGS_x86=$(CFLAGS=${CFLAGS_x86}; filter-flags '-march=*'; echo "${CFLAGS}")
|
||||
export CFLAGS_x86="${CFLAGS_x86} -march=${t}"
|
||||
einfo "Auto adding -march=${t} to CFLAGS_x86 #185404 (ABI=${ABI})"
|
||||
fi
|
||||
@ -838,7 +838,7 @@ sanity_prechecks() {
|
||||
|
||||
# ABI-specific checks follow here. Hey, we have a lot more specific conditions that
|
||||
# we test for...
|
||||
if ! is_crosscompile ; then
|
||||
if ! is_crosscompile && ! tc-is-cross-compiler ; then
|
||||
if use amd64 && use multilib && [[ ${MERGE_TYPE} != "binary" ]] ; then
|
||||
ebegin "Checking if the system can execute 32-bit binaries"
|
||||
echo 'int main(){return 0;}' > "${T}/check-ia32-emulation.c"
|
||||
|
@ -343,7 +343,7 @@ setup_target_flags() {
|
||||
[[ ${t} == "x86_64" ]] && t="x86-64"
|
||||
filter-flags '-march=*'
|
||||
# ugly, ugly, ugly. ugly.
|
||||
CFLAGS_x86=$(CFLAGS=${CFLAGS_x86} filter-flags '-march=*'; echo "${CFLAGS}")
|
||||
CFLAGS_x86=$(CFLAGS=${CFLAGS_x86}; filter-flags '-march=*'; echo "${CFLAGS}")
|
||||
export CFLAGS_x86="${CFLAGS_x86} -march=${t}"
|
||||
einfo "Auto adding -march=${t} to CFLAGS_x86 #185404 (ABI=${ABI})"
|
||||
fi
|
||||
@ -818,7 +818,7 @@ sanity_prechecks() {
|
||||
|
||||
# ABI-specific checks follow here. Hey, we have a lot more specific conditions that
|
||||
# we test for...
|
||||
if ! is_crosscompile ; then
|
||||
if ! is_crosscompile && ! tc-is-cross-compiler ; then
|
||||
if use amd64 && use multilib && [[ ${MERGE_TYPE} != "binary" ]] ; then
|
||||
ebegin "Checking if the system can execute 32-bit binaries"
|
||||
echo 'int main(){return 0;}' > "${T}/check-ia32-emulation.c"
|
||||
|
@ -350,7 +350,7 @@ setup_target_flags() {
|
||||
[[ ${t} == "x86_64" ]] && t="x86-64"
|
||||
filter-flags '-march=*'
|
||||
# ugly, ugly, ugly. ugly.
|
||||
CFLAGS_x86=$(CFLAGS=${CFLAGS_x86} filter-flags '-march=*'; echo "${CFLAGS}")
|
||||
CFLAGS_x86=$(CFLAGS=${CFLAGS_x86}; filter-flags '-march=*'; echo "${CFLAGS}")
|
||||
export CFLAGS_x86="${CFLAGS_x86} -march=${t}"
|
||||
einfo "Auto adding -march=${t} to CFLAGS_x86 #185404 (ABI=${ABI})"
|
||||
fi
|
||||
@ -821,7 +821,7 @@ sanity_prechecks() {
|
||||
|
||||
# ABI-specific checks follow here. Hey, we have a lot more specific conditions that
|
||||
# we test for...
|
||||
if ! is_crosscompile ; then
|
||||
if ! is_crosscompile && ! tc-is-cross-compiler; then
|
||||
if use amd64 && use multilib && [[ ${MERGE_TYPE} != "binary" ]] ; then
|
||||
ebegin "Checking if the system can execute 32-bit binaries"
|
||||
echo 'int main(){return 0;}' > "${T}/check-ia32-emulation.c"
|
||||
|
@ -350,7 +350,7 @@ setup_target_flags() {
|
||||
[[ ${t} == "x86_64" ]] && t="x86-64"
|
||||
filter-flags '-march=*'
|
||||
# ugly, ugly, ugly. ugly.
|
||||
CFLAGS_x86=$(CFLAGS=${CFLAGS_x86} filter-flags '-march=*'; echo "${CFLAGS}")
|
||||
CFLAGS_x86=$(CFLAGS=${CFLAGS_x86}; filter-flags '-march=*'; echo "${CFLAGS}")
|
||||
export CFLAGS_x86="${CFLAGS_x86} -march=${t}"
|
||||
einfo "Auto adding -march=${t} to CFLAGS_x86 #185404 (ABI=${ABI})"
|
||||
fi
|
||||
@ -821,7 +821,7 @@ sanity_prechecks() {
|
||||
|
||||
# ABI-specific checks follow here. Hey, we have a lot more specific conditions that
|
||||
# we test for...
|
||||
if ! is_crosscompile ; then
|
||||
if ! is_crosscompile && ! tc-is-cross-compiler ; then
|
||||
if use amd64 && use multilib && [[ ${MERGE_TYPE} != "binary" ]] ; then
|
||||
ebegin "Checking if the system can execute 32-bit binaries"
|
||||
echo 'int main(){return 0;}' > "${T}/check-ia32-emulation.c"
|
||||
|
@ -351,7 +351,7 @@ setup_target_flags() {
|
||||
[[ ${t} == "x86_64" ]] && t="x86-64"
|
||||
filter-flags '-march=*'
|
||||
# ugly, ugly, ugly. ugly.
|
||||
CFLAGS_x86=$(CFLAGS=${CFLAGS_x86} filter-flags '-march=*'; echo "${CFLAGS}")
|
||||
CFLAGS_x86=$(CFLAGS=${CFLAGS_x86}; filter-flags '-march=*'; echo "${CFLAGS}")
|
||||
export CFLAGS_x86="${CFLAGS_x86} -march=${t}"
|
||||
einfo "Auto adding -march=${t} to CFLAGS_x86 #185404 (ABI=${ABI})"
|
||||
fi
|
||||
@ -817,7 +817,7 @@ sanity_prechecks() {
|
||||
|
||||
# ABI-specific checks follow here. Hey, we have a lot more specific conditions that
|
||||
# we test for...
|
||||
if ! is_crosscompile ; then
|
||||
if ! is_crosscompile && ! tc-is-cross-compiler ; then
|
||||
if use amd64 && use multilib && [[ ${MERGE_TYPE} != "binary" ]] ; then
|
||||
ebegin "Checking if the system can execute 32-bit binaries"
|
||||
echo 'int main(){return 0;}' > "${T}/check-ia32-emulation.c"
|
||||
|
@ -351,7 +351,7 @@ setup_target_flags() {
|
||||
[[ ${t} == "x86_64" ]] && t="x86-64"
|
||||
filter-flags '-march=*'
|
||||
# ugly, ugly, ugly. ugly.
|
||||
CFLAGS_x86=$(CFLAGS=${CFLAGS_x86} filter-flags '-march=*'; echo "${CFLAGS}")
|
||||
CFLAGS_x86=$(CFLAGS=${CFLAGS_x86}; filter-flags '-march=*'; echo "${CFLAGS}")
|
||||
export CFLAGS_x86="${CFLAGS_x86} -march=${t}"
|
||||
einfo "Auto adding -march=${t} to CFLAGS_x86 #185404 (ABI=${ABI})"
|
||||
fi
|
||||
@ -817,7 +817,7 @@ sanity_prechecks() {
|
||||
|
||||
# ABI-specific checks follow here. Hey, we have a lot more specific conditions that
|
||||
# we test for...
|
||||
if ! is_crosscompile ; then
|
||||
if ! is_crosscompile && ! tc-is-cross-compiler ; then
|
||||
if use amd64 && use multilib && [[ ${MERGE_TYPE} != "binary" ]] ; then
|
||||
ebegin "Checking if the system can execute 32-bit binaries"
|
||||
echo 'int main(){return 0;}' > "${T}/check-ia32-emulation.c"
|
||||
|
@ -351,7 +351,7 @@ setup_target_flags() {
|
||||
[[ ${t} == "x86_64" ]] && t="x86-64"
|
||||
filter-flags '-march=*'
|
||||
# ugly, ugly, ugly. ugly.
|
||||
CFLAGS_x86=$(CFLAGS=${CFLAGS_x86} filter-flags '-march=*'; echo "${CFLAGS}")
|
||||
CFLAGS_x86=$(CFLAGS=${CFLAGS_x86}; filter-flags '-march=*'; echo "${CFLAGS}")
|
||||
export CFLAGS_x86="${CFLAGS_x86} -march=${t}"
|
||||
einfo "Auto adding -march=${t} to CFLAGS_x86 #185404 (ABI=${ABI})"
|
||||
fi
|
||||
@ -817,7 +817,7 @@ sanity_prechecks() {
|
||||
|
||||
# ABI-specific checks follow here. Hey, we have a lot more specific conditions that
|
||||
# we test for...
|
||||
if ! is_crosscompile ; then
|
||||
if ! is_crosscompile && ! tc-is-cross-compiler ; then
|
||||
if use amd64 && use multilib && [[ ${MERGE_TYPE} != "binary" ]] ; then
|
||||
ebegin "Checking if the system can execute 32-bit binaries"
|
||||
echo 'int main(){return 0;}' > "${T}/check-ia32-emulation.c"
|
||||
|
Loading…
x
Reference in New Issue
Block a user