Allow user to add a directory component in the sys-root path.
Rename CT_DEBUG_INSTALL_DIR to CT_DEBUGROOT_DIR (to match CT_SYSROOT_DIR).
As a side effect, fix creating lib64->lib symlinks.
/trunk/scripts/build/debug/100-dmalloc.sh | 2 1 1 0 +-
/trunk/scripts/build/debug/400-ltrace.sh | 2 1 1 0 +-
/trunk/scripts/build/debug/300-gdb.sh | 6 3 3 0 +++---
/trunk/scripts/build/debug/500-strace.sh | 2 1 1 0 +-
/trunk/scripts/build/debug/200-duma.sh | 6 3 3 0 +++---
/trunk/scripts/crosstool-NG.sh.in | 16 7 9 0 +++++++---------
/trunk/scripts/functions | 2 1 1 0 +-
/trunk/config/toolchain.in | 17 17 0 0 +++++++++++++++++
8 files changed, 34 insertions(+), 19 deletions(-)
1 Original patch from http://gmplib.org/patches/mpf_set_str.c.diff
2 Re-diffed to match crosstool-NG conventions.
4 diff -dur gmp-4.2.2.orig/mpf/set_str.c gmp-4.2.2/mpf/set_str.c
5 --- gmp-4.2.2.orig/mpf/set_str.c 2007-08-30 20:31:40.000000000 +0200
6 +++ gmp-4.2.2/mpf/set_str.c 2008-01-28 23:05:29.000000000 +0100
11 - /* FIXME: Should do some error checking here. */
12 - exp_in_base = strtol (expptr, (char **) 0, exp_base);
14 + /* Scan and convert the exponent, in base exp_base. */
15 + long dig, neg = -(long) ('-' == expptr[0]);
16 + expptr -= neg; /* conditional increment */
17 + c = (unsigned char) *expptr++;
18 + dig = digit_value[c];
19 + if (dig >= exp_base)
25 + c = (unsigned char) *expptr++;
26 + dig = digit_value[c];
27 + while (dig < exp_base)
29 + exp_in_base = exp_in_base * exp_base;
31 + c = (unsigned char) *expptr++;
32 + dig = digit_value[c];
34 + exp_in_base = (exp_in_base ^ neg) - neg; /* conditional negation */