diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2009-12-19 12:44:21 +0100 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2009-12-19 12:44:21 +0100 |
commit | f96424f56fb272f2064dbb1ed8d0872603088651 (patch) | |
tree | 4b2f33cb9d1c11c5187336732f823259c77e93fc | |
parent | 5b4be4bafde7a4ffc1f56b1add44d8aadeb22e22 (diff) | |
download | crosstool-ng-f96424f56fb272f2064dbb1ed8d0872603088651.tar.gz crosstool-ng-f96424f56fb272f2064dbb1ed8d0872603088651.tar.bz2 crosstool-ng-f96424f56fb272f2064dbb1ed8d0872603088651.zip |
scripts: check for, and warn about an unset CT_PREFIX_DIR
The user shall provide a directory to install the toolchain into.
If he/she does not, this is an error, and shall be detected properly,
rather than relying on failure down the road.
Thanks to "Pedro I. Sanchez" <psanchez@colcan.ca> for pointing out
the issue:
http://sourceware.org/ml/crossgcc/2009-12/msg00011.html
(transplanted from e94f4ffddd1d07b3841160db71694cd19fda6b03)
-rw-r--r-- | scripts/crosstool-NG.sh.in | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/crosstool-NG.sh.in b/scripts/crosstool-NG.sh.in index f1e38fc9..7a45f8f9 100644 --- a/scripts/crosstool-NG.sh.in +++ b/scripts/crosstool-NG.sh.in @@ -134,6 +134,9 @@ CT_DoBuildTargetTuple # then rescan the options file now: . .config +# Sanity check some directories +CT_TestAndAbort "'CT_PREFIX_DIR' is not set: where should I install?" -z "${CT_PREFIX_DIR}" + # Second kludge: merge user-supplied target CFLAGS with architecture-provided # target CFLAGS. Do the same for LDFLAGS in case it happens in the future. # Put user-supplied flags at the end, so that they take precedence. |