mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-01-31 08:25:32 +00:00
glibc: Fix pkgversion and bugurl support
glibc versions that don't support --with-pkgversion or --with-bugurl will cause a harmless: ==================== configure: WARNING: unrecognized options: --with-bugurl...` ==================== If it's set, use it, if it's a recognized option. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
This commit is contained in:
parent
cd47c091ba
commit
add039fd50
@ -603,8 +603,13 @@ do_libc_locales() {
|
||||
|
||||
CT_DoLog EXTRA "Configuring C library localedef"
|
||||
|
||||
if [ "${CT_LIBC_GLIBC_HAS_PKGVERSION_BUGURL}" = "y" ]; then
|
||||
# Versions that don't support --with-pkgversion or --with-bugurl will cause
|
||||
# a harmless: `configure: WARNING: unrecognized options: --with-bugurl...`
|
||||
# If it's set, use it, if is a recognized option.
|
||||
if [ ! "${CT_TOOLCHAIN_PKGVERSION}" = "" ]; then
|
||||
extra_config+=("--with-pkgversion=${CT_PKGVERSION}")
|
||||
fi
|
||||
if [ ! "${CT_TOOLCHAIN_BUGURL}" = "" ]; then
|
||||
[ -n "${CT_TOOLCHAIN_BUGURL}" ] && extra_config+=("--with-bugurl=${CT_TOOLCHAIN_BUGURL}")
|
||||
fi
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user