Skip to content

Commit

Permalink
Supply "very old" and "very new" glibc versions
Browse files Browse the repository at this point in the history
... as 1.0 and 99.99, respectively, to gcc configure.

Fixes #1031.

Signed-off-by: Alexey Neyman <stilor@att.net>
  • Loading branch information
stilor committed Oct 22, 2018
1 parent 2157b53 commit 782b45d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/build/cc/gcc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,11 @@ do_gcc_core_backend() {
local glibc_version

CT_GetPkgVersion GLIBC glibc_version
glibc_version=`echo "${glibc_version}" | sed 's/\([1-9][0-9]*\.[1-9][0-9]*\).*/\1/'`
case "${glibc_version}" in
new) glibc_version=99.99;;
old) glibc_version=1.0;;
*) glibc_version=`echo "${glibc_version}" | sed 's/\([1-9][0-9]*\.[1-9][0-9]*\).*/\1/'`;;
esac
extra_config+=("--with-glibc-version=${glibc_version}")
fi

Expand Down

0 comments on commit 782b45d

Please sign in to comment.