# HG changeset patch # User "Yann E. MORIN" # Date 1261223061 -3600 # Node ID e94f4ffddd1d07b3841160db71694cd19fda6b03 # Parent ea3490d46f4e900b507d410ddbabf958923c2ac1 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" for pointing out the issue: http://sourceware.org/ml/crossgcc/2009-12/msg00011.html diff -r ea3490d46f4e -r e94f4ffddd1d scripts/crosstool-NG.sh.in --- a/scripts/crosstool-NG.sh.in Mon Dec 14 19:17:37 2009 +0100 +++ b/scripts/crosstool-NG.sh.in Sat Dec 19 12:44:21 2009 +0100 @@ -134,6 +134,9 @@ # 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.