sys-libs/libxcrypt: Sync with Gentoo

It's from Gentoo commit 1d04fa37e49523fc98d0992af4889de36042666a.
This commit is contained in:
Flatcar Buildbot 2025-03-03 07:11:54 +00:00 committed by Krzesimir Nowak
parent 9f9e881684
commit 8620160854
3 changed files with 9 additions and 5 deletions

View File

@ -138,9 +138,11 @@ src_configure() {
fi
if use headers-only; then
# Nothing is compiled here which would affect the headers for the target.
# So forcing CC is sane.
# Nothing is compiled which would affect the headers, so we set
# CC and PKG_CONFIG to ensure configure passes without defaulting
# to the unprefixed host variants e.g. "pkg-config"
local -x CC="$(tc-getBUILD_CC)"
local -x PKG_CONFIG="false"
fi
# Avoid possible "illegal instruction" errors with gold

View File

@ -138,9 +138,11 @@ src_configure() {
fi
if use headers-only; then
# Nothing is compiled here which would affect the headers for the target.
# So forcing CC is sane.
# Nothing is compiled which would affect the headers, so we set
# CC and PKG_CONFIG to ensure configure passes without defaulting
# to the unprefixed host variants e.g. "pkg-config"
local -x CC="$(tc-getBUILD_CC)"
local -x PKG_CONFIG="false"
fi
# Doesn't work with LTO: bug #852917.

View File

@ -13,7 +13,7 @@
<use>
<flag name="compat">Build with compatibility interfaces for other crypt implementations</flag>
<flag name="system">Install as system libcrypt.so rather than to an alternate directory (will collide with <pkg>sys-libs/glibc</pkg>'s version)</flag>
<flag name="headers-only">Build and install only the headers.</flag>
<flag name="headers-only">Build and install only the headers. This is mostly useful for toolchain bootstrapping, to avoid circular deps.</flag>
</use>
<upstream>
<remote-id type="github">besser82/libxcrypt</remote-id>