mirror of
https://github.com/mirror/wget.git
synced 2025-04-17 06:50:34 +08:00
* bootstrap.conf: Fix latest gnulib to work with gperf < 3.1
This commit is contained in:
parent
838c185ca9
commit
21ac4ae356
@ -147,3 +147,17 @@ tar -
|
||||
xz -
|
||||
flex -
|
||||
"
|
||||
|
||||
bootstrap_post_import_hook ()
|
||||
{
|
||||
# We need to patch unicase/special-casing-table.h for gperf < 3.1
|
||||
GPERF_VER=$(gperf --version | {
|
||||
IFS=' .' read x y major minor bugfix _
|
||||
printf "%d%02d%02d" $major $minor $bugfix
|
||||
})
|
||||
|
||||
if [ $GPERF_VER -lt 30100 ]; then
|
||||
echo "Patching lib/unicase/special-casing-table.h for gperf < 3.1"
|
||||
sed -i "s/gl_unicase_special_lookup.*/gl_unicase_special_lookup\ \(const char \*str, size_t len\)/g" lib/unicase/special-casing-table.h
|
||||
fi
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user