diff options
author | William A. Rowe Jr <wrowe@apache.org> | 2018-08-30 03:00:09 +0000 |
---|---|---|
committer | William A. Rowe Jr <wrowe@apache.org> | 2018-08-30 03:00:09 +0000 |
commit | 9bac90373dfdc89fde95aa7a1331de98629aaeed (patch) | |
tree | f70daa7f76a46b494744f752e6c3889fa7844151 /build | |
parent | 929ae45e01c8e6eb12d26a42bdf30f7fe76029d3 (diff) | |
download | apr-9bac90373dfdc89fde95aa7a1331de98629aaeed.tar.gz |
Submitted by: Hongxu Jia <hongxu.jia@windriver.com>
https://patch-diff.githubusercontent.com/raw/apache/apr/pull/8.patch
While cross-compiling, the tools/gen_test_char could not
be executed at build time, use AX_PROG_CC_FOR_BUILD to
build native tools/gen_test_char
Support explicit libtool by variable assigning before buildcheck.sh,
it is helpful for cross-compiling (such as libtool=aarch64-linux-libtool)
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1839627 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'build')
-rwxr-xr-x | build/buildcheck.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/build/buildcheck.sh b/build/buildcheck.sh index 76ff8cef2..44921b502 100755 --- a/build/buildcheck.sh +++ b/build/buildcheck.sh @@ -40,7 +40,9 @@ fi # output is multiline from 1.5 onwards # Require libtool 1.4 or newer -libtool=`build/PrintPath glibtool1 glibtool libtool libtool15 libtool14` +if test -z "$libtool"; then + libtool=`build/PrintPath glibtool1 glibtool libtool libtool15 libtool14` +fi lt_pversion=`$libtool --version 2>/dev/null|sed -e 's/([^)]*)//g;s/^[^0-9]*//;s/[- ].*//g;q'` if test -z "$lt_pversion"; then echo "buildconf: libtool not found." |