Native gcc is picky about the CC and LD variables. Set them unconditionally, whether building static or not.
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Fri Jun 27 11:18:56 2008 +0000 (2008-06-27)
changeset 62632af757a45f6
parent 625 4df159d20355
child 627 17a57be570a5
Native gcc is picky about the CC and LD variables. Set them unconditionally, whether building static or not.

/trunk/scripts/build/debug/300-gdb.sh | 5 3 2 0 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
scripts/build/debug/300-gdb.sh
     1.1 --- a/scripts/build/debug/300-gdb.sh	Fri Jun 27 11:18:02 2008 +0000
     1.2 +++ b/scripts/build/debug/300-gdb.sh	Fri Jun 27 11:18:56 2008 +0000
     1.3 @@ -136,11 +136,12 @@
     1.4              native_extra_config="${native_extra_config} --with-gmp=${CT_SYSROOT_DIR}/usr --with-mpfr=${CT_SYSROOT_DIR}/usr"
     1.5          fi
     1.6  
     1.7 -        CC_for_gdb=
     1.8 -        LD_for_gdb=
     1.9          if [ "${CT_GDB_NATIVE_STATIC}" = "y" ]; then
    1.10              CC_for_gdb="${CT_TARGET}-gcc -static"
    1.11              LD_for_gdb="${CT_TARGET}-ld -static"
    1.12 +        else
    1.13 +            CC_for_gdb="${CT_TARGET}-gcc"
    1.14 +            LD_for_gdb="${CT_TARGET}-ld"
    1.15          fi
    1.16  
    1.17          export ac_cv_func_strncmp_works=yes