# HG changeset patch # User "Yann E. MORIN" # Date 1263418210 -3600 # Node ID 02db017f4fe1d1ed4372593bc3c2a14bbbea6bcc # Parent 6b2ae7804c6f639c0fe4fdca6b7355c36cf5bd33 debug/gdb: install ncurses in a temporary place We only build the static ncurses, to be used to build the native gdb, and it needs not be available for anyone but us. So install it into a temporary place, and get rid of it once gdb is built. diff -r 6b2ae7804c6f -r 02db017f4fe1 scripts/build/debug/300-gdb.sh --- a/scripts/build/debug/300-gdb.sh Wed Jan 13 20:46:01 2010 +0100 +++ b/scripts/build/debug/300-gdb.sh Wed Jan 13 22:30:10 2010 +0100 @@ -190,7 +190,7 @@ --with-build-cc=${CT_BUILD}-gcc \ --with-build-cpp=${CT_BUILD}-gcc \ --with-build-cflags="${CT_CFLAGS_FOR_HOST}" \ - --prefix=/usr \ + --prefix="${CT_BUILD_DIR}/ncurses" \ --without-shared \ --without-sysmouse \ --without-progs \ @@ -201,8 +201,7 @@ CT_DoExecLog ALL make ${PARALLELMFLAGS} CT_DoLog EXTRA "Installing ncurses" - mkdir -p "${CT_SYSROOT_DIR}/usr/bin" - CT_DoExecLog ALL make DESTDIR="${CT_SYSROOT_DIR}" install + CT_DoExecLog ALL make install # We no longer need the temporary tic. Remove it CT_DoExecLog DEBUG rm -fv "${CT_PREFIX_DIR}/bin/tic" @@ -233,10 +232,13 @@ export ac_cv_func_strncmp_works=yes + gdb_native_CFLAGS="-I${CT_BUILD_DIR}/ncurses/include -L${CT_BUILD_DIR}/ncurses/lib" + CT_DoLog DEBUG "Extra config passed: '${native_extra_config[*]}'" CC="${CC_for_gdb}" \ LD="${LD_for_gdb}" \ + CFLAGS="${gdb_native_CFLAGS}" \ CT_DoExecLog ALL \ "${gdb_src_dir}/configure" \ --build=${CT_BUILD} \ @@ -269,6 +271,8 @@ cd "${CT_BUILD_DIR}/build-ncurses" CT_DoExecLog ALL make DESTDIR="${CT_SYSROOT_DIR}" uninstall + CT_DoExecLog DEBUG rm -rf "${CT_BUILD_DIR}/ncurses" + CT_EndStep # native gdb build fi