summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Neyman <stilor@att.net>2018-10-23 05:37:50 (GMT)
committerGitHub <noreply@github.com>2018-10-23 05:37:50 (GMT)
commitee829c25eb374386ec1d5df2250a8a52f0f9d4a1 (patch)
treec7ba5c1e275e6f0ed0026852396dedc8e6ed159e
parent6b53ad77c25f1013918e2da017c427e9dfb59449 (diff)
parent782b45d0dab33e910678ca2d01ca746041313348 (diff)
Merge pull request #1065 from stilor/glibc-version
Supply "very old" and "very new" glibc versions
-rw-r--r--scripts/build/cc/gcc.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/build/cc/gcc.sh b/scripts/build/cc/gcc.sh
index f38fd7f..7a74574 100644
--- a/scripts/build/cc/gcc.sh
+++ b/scripts/build/cc/gcc.sh
@@ -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