diff options
author | Alexey Neyman <stilor@att.net> | 2017-08-22 16:48:45 -0700 |
---|---|---|
committer | Alexey Neyman <stilor@att.net> | 2017-08-22 16:48:45 -0700 |
commit | 20e0f706c60898a283374bbd15096b7bd6b1fbc5 (patch) | |
tree | 9252d1f31d2c046cbfb18d152ac675c52b00e8e5 /scripts/functions | |
parent | 5fc2ca7e8db5a3a38ad6cc8c8ce13505fef602a4 (diff) | |
download | crosstool-ng-20e0f706c60898a283374bbd15096b7bd6b1fbc5.tar.gz crosstool-ng-20e0f706c60898a283374bbd15096b7bd6b1fbc5.tar.bz2 crosstool-ng-20e0f706c60898a283374bbd15096b7bd6b1fbc5.zip |
Fix PPC64LE by supplying --with-glibc-version
Signed-off-by: Alexey Neyman <stilor@att.net>
Diffstat (limited to 'scripts/functions')
-rw-r--r-- | scripts/functions | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/scripts/functions b/scripts/functions index cc7e131c..26ff88aa 100644 --- a/scripts/functions +++ b/scripts/functions @@ -1713,6 +1713,7 @@ CT_PackageRun() # Fetching the sources is run in the main process, so no need to # use CT_EnvModify. for v in devel_branch devel_revision basename version; do + eval "[ \"\${${v}}\" != \"\${CT_${use}_${v^^}}\" ] || continue" eval "CT_${use}_${v^^}=\${${v}}" eval "CT_DoLog DEBUG \"Override CT_${use}_${v^^}=\${CT_${use}_${v^^}}\"" done @@ -2009,3 +2010,17 @@ CT_ExtractPatch() shift CT_PackageRun "${pkg}" CT_DoExtractPatch "$@" } + +CT_DoGetPkgVersion() +{ + echo "${version}" +} + +# Get the version of the package (main or fork) +CT_GetPkgVersion() +{ + local pkg="${1}" + shift + + CT_PackageRun "${pkg}" CT_DoGetPkgVersion +} |