mirror of
https://github.com/flatcar/scripts.git
synced 2025-11-26 21:11:54 +01:00
sys-libs/libxcrypt: Sync with Gentoo
It's from Gentoo commit 512953539d79ad8c4b0b97375b6d29f5932c1d46.
This commit is contained in:
parent
13f21d9b58
commit
5b463f28ee
@ -1,4 +1,4 @@
|
||||
# Copyright 2004-2024 Gentoo Authors
|
||||
# Copyright 2004-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
@ -116,6 +116,14 @@ src_configure() {
|
||||
MYSYSROOT=${ESYSROOT}
|
||||
|
||||
if target_is_not_host; then
|
||||
# Hack to work around missing TARGET_CC support.
|
||||
# See bug 949976.
|
||||
if tc-is-clang; then
|
||||
export CC="${CTARGET}-clang"
|
||||
else
|
||||
export CC="${CTARGET}-gcc"
|
||||
fi
|
||||
|
||||
local CHOST=${CTARGET}
|
||||
|
||||
MYPREFIX=
|
||||
@ -126,12 +134,6 @@ src_configure() {
|
||||
multilib_env
|
||||
ABI=${DEFAULT_ABI}
|
||||
|
||||
tc-getCC >/dev/null
|
||||
if [[ ${CC} != ${CHOST}-* ]]; then
|
||||
unset CC
|
||||
tc-getCC >/dev/null
|
||||
fi
|
||||
|
||||
strip-unsupported-flags
|
||||
fi
|
||||
|
||||
|
||||
@ -116,6 +116,14 @@ src_configure() {
|
||||
MYSYSROOT=${ESYSROOT}
|
||||
|
||||
if target_is_not_host; then
|
||||
# Hack to work around missing TARGET_CC support.
|
||||
# See bug 949976.
|
||||
if tc-is-clang; then
|
||||
export CC="${CTARGET}-clang"
|
||||
else
|
||||
export CC="${CTARGET}-gcc"
|
||||
fi
|
||||
|
||||
local CHOST=${CTARGET}
|
||||
|
||||
MYPREFIX=
|
||||
@ -126,12 +134,6 @@ src_configure() {
|
||||
multilib_env
|
||||
ABI=${DEFAULT_ABI}
|
||||
|
||||
tc-getCC >/dev/null
|
||||
if [[ ${CC} != ${CHOST}-* ]]; then
|
||||
unset CC
|
||||
tc-getCC >/dev/null
|
||||
fi
|
||||
|
||||
strip-unsupported-flags
|
||||
fi
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user