mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-19 12:57:53 +00:00
Run all configure scripts using ${CONFIG_SHELL}
... as its help message says in menuconfig. Signed-off-by: Alexey Neyman <stilor@att.net>
This commit is contained in:
parent
b5d0e396d9
commit
7186e39f32
@ -216,6 +216,7 @@ do_binutils_backend() {
|
||||
CFLAGS="${cflags}" \
|
||||
CXXFLAGS="${cflags}" \
|
||||
LDFLAGS="${ldflags}" \
|
||||
${CONFIG_SHELL} \
|
||||
"${CT_SRC_DIR}/binutils-${CT_BINUTILS_VERSION}/configure" \
|
||||
--build=${CT_BUILD} \
|
||||
--host=${host} \
|
||||
@ -300,6 +301,7 @@ do_elf2flt_backend() {
|
||||
CFLAGS="${cflags}" \
|
||||
LDFLAGS="${ldflags}" \
|
||||
LIBS="-ldl" \
|
||||
${CONFIG_SHELL} \
|
||||
"${CT_SRC_DIR}/elf2flt-${CT_ELF2FLT_VERSION}/configure" \
|
||||
--build=${CT_BUILD} \
|
||||
--host=${host} \
|
||||
@ -359,6 +361,7 @@ do_binutils_for_target() {
|
||||
[ "${CT_TOOLCHAIN_ENABLE_NLS}" != "y" ] && extra_config+=("--disable-nls")
|
||||
|
||||
CT_DoExecLog CFG \
|
||||
${CONFIG_SHELL} \
|
||||
"${CT_SRC_DIR}/binutils-${CT_BINUTILS_VERSION}/configure" \
|
||||
--build=${CT_BUILD} \
|
||||
--host=${CT_TARGET} \
|
||||
|
@ -595,6 +595,7 @@ do_gcc_core_backend() {
|
||||
CFLAGS_FOR_TARGET="${CT_TARGET_CFLAGS}" \
|
||||
CXXFLAGS_FOR_TARGET="${CT_TARGET_CFLAGS}" \
|
||||
LDFLAGS_FOR_TARGET="${CT_TARGET_LDFLAGS}" \
|
||||
${CONFIG_SHELL} \
|
||||
"${CT_SRC_DIR}/gcc-${CT_CC_GCC_VERSION}/configure" \
|
||||
--build=${CT_BUILD} \
|
||||
--host=${host} \
|
||||
@ -1109,23 +1110,24 @@ do_gcc_backend() {
|
||||
cflags="$cflags "-fbracket-depth=512
|
||||
fi
|
||||
|
||||
CT_DoExecLog CFG \
|
||||
CC_FOR_BUILD="${CT_BUILD}-gcc" \
|
||||
CFLAGS="${cflags}" \
|
||||
CXXFLAGS="${cflags}" \
|
||||
LDFLAGS="${final_LDFLAGS[*]}" \
|
||||
CFLAGS_FOR_TARGET="${CT_TARGET_CFLAGS}" \
|
||||
CXXFLAGS_FOR_TARGET="${CT_TARGET_CFLAGS}" \
|
||||
LDFLAGS_FOR_TARGET="${CT_TARGET_LDFLAGS}" \
|
||||
CT_DoExecLog CFG \
|
||||
CC_FOR_BUILD="${CT_BUILD}-gcc" \
|
||||
CFLAGS="${cflags}" \
|
||||
CXXFLAGS="${cflags}" \
|
||||
LDFLAGS="${final_LDFLAGS[*]}" \
|
||||
CFLAGS_FOR_TARGET="${CT_TARGET_CFLAGS}" \
|
||||
CXXFLAGS_FOR_TARGET="${CT_TARGET_CFLAGS}" \
|
||||
LDFLAGS_FOR_TARGET="${CT_TARGET_LDFLAGS}" \
|
||||
${CONFIG_SHELL} \
|
||||
"${CT_SRC_DIR}/gcc-${CT_CC_GCC_VERSION}/configure" \
|
||||
--build=${CT_BUILD} \
|
||||
--host=${host} \
|
||||
--target=${CT_TARGET} \
|
||||
--prefix="${prefix}" \
|
||||
${CC_SYSROOT_ARG} \
|
||||
"${extra_config[@]}" \
|
||||
--with-local-prefix="${CT_SYSROOT_DIR}" \
|
||||
--enable-long-long \
|
||||
--build=${CT_BUILD} \
|
||||
--host=${host} \
|
||||
--target=${CT_TARGET} \
|
||||
--prefix="${prefix}" \
|
||||
${CC_SYSROOT_ARG} \
|
||||
"${extra_config[@]}" \
|
||||
--with-local-prefix="${CT_SYSROOT_DIR}" \
|
||||
--enable-long-long \
|
||||
"${CT_CC_GCC_EXTRA_CONFIG_ARRAY[@]}"
|
||||
|
||||
if [ "${CT_CANADIAN}" = "y" ]; then
|
||||
|
@ -92,6 +92,7 @@ do_gmp_backend() {
|
||||
CT_DoExecLog CFG \
|
||||
CFLAGS="${cflags} -fexceptions" \
|
||||
LDFLAGS="${ldflags}" \
|
||||
${CONFIG_SHELL} \
|
||||
"${CT_SRC_DIR}/gmp-${CT_GMP_VERSION}/configure" \
|
||||
--build=${CT_BUILD} \
|
||||
--host=${host} \
|
||||
|
@ -137,6 +137,7 @@ do_mpfr_backend() {
|
||||
CC="${host}-gcc" \
|
||||
CFLAGS="${cflags}" \
|
||||
LDFLAGS="${ldflags}" \
|
||||
${CONFIG_SHELL} \
|
||||
"${CT_SRC_DIR}/mpfr-${CT_MPFR_VERSION}/configure" \
|
||||
--build=${CT_BUILD} \
|
||||
--host=${host} \
|
||||
|
@ -100,6 +100,7 @@ do_isl_backend() {
|
||||
CFLAGS="${cflags}" \
|
||||
CXXFLAGS="${cxxflags}" \
|
||||
LDFLAGS="${ldflags}" \
|
||||
${CONFIG_SHELL} \
|
||||
"${CT_SRC_DIR}/isl-${CT_ISL_VERSION}/configure" \
|
||||
--build=${CT_BUILD} \
|
||||
--host=${host} \
|
||||
|
@ -98,6 +98,7 @@ do_cloog_backend() {
|
||||
CFLAGS="${cflags}" \
|
||||
LDFLAGS="${ldflags}" \
|
||||
LIBS="-lm" \
|
||||
${CONFIG_SHELL} \
|
||||
"${CT_SRC_DIR}/cloog-${CT_CLOOG_VERSION}/configure" \
|
||||
--build=${CT_BUILD} \
|
||||
--host=${host} \
|
||||
|
@ -87,6 +87,7 @@ do_mpc_backend() {
|
||||
CT_DoExecLog CFG \
|
||||
CFLAGS="${cflags}" \
|
||||
LDFLAGS="${ldflags}" \
|
||||
${CONFIG_SHELL} \
|
||||
"${CT_SRC_DIR}/mpc-${CT_MPC_VERSION}/configure" \
|
||||
--build=${CT_BUILD} \
|
||||
--host=${host} \
|
||||
|
@ -131,6 +131,7 @@ do_libelf_backend() {
|
||||
RANLIB="${host}-ranlib" \
|
||||
CFLAGS="${cflags} -fPIC" \
|
||||
LDFLAGS="${ldflags}" \
|
||||
${CONFIG_SHELL} \
|
||||
"${CT_SRC_DIR}/libelf-${CT_LIBELF_VERSION}/configure" \
|
||||
--build=${CT_BUILD} \
|
||||
--host=${host} \
|
||||
|
@ -94,6 +94,7 @@ do_expat_backend() {
|
||||
CT_DoExecLog CFG \
|
||||
CFLAGS="${cflags}" \
|
||||
LDFLAGS="${ldflags}" \
|
||||
${CONFIG_SHELL} \
|
||||
"${CT_SRC_DIR}/expat-${CT_EXPAT_VERSION}/configure" \
|
||||
--build=${CT_BUILD} \
|
||||
--host=${host} \
|
||||
|
@ -147,6 +147,7 @@ do_ncurses_backend() {
|
||||
CT_DoExecLog CFG \
|
||||
CFLAGS="${cflags}" \
|
||||
LDFLAGS="${ldflags}" \
|
||||
${CONFIG_SHELL} \
|
||||
"${CT_SRC_DIR}/ncurses-${CT_NCURSES_VERSION}/configure" \
|
||||
--build=${CT_BUILD} \
|
||||
--host=${host} \
|
||||
|
@ -85,6 +85,7 @@ do_libiconv_backend() {
|
||||
CT_DoExecLog CFG \
|
||||
CFLAGS="${cflags}" \
|
||||
LDFLAGS="${ldflags}" \
|
||||
${CONFIG_SHELL} \
|
||||
"${CT_SRC_DIR}/libiconv-${CT_LIBICONV_VERSION}/configure" \
|
||||
--build=${CT_BUILD} \
|
||||
--host="${host}" \
|
||||
|
@ -106,6 +106,7 @@ do_gettext_backend() {
|
||||
CT_DoExecLog CFG \
|
||||
CFLAGS="${cflags}" \
|
||||
LDFLAGS="${ldflags}" \
|
||||
${CONFIG_SHELL} \
|
||||
"${CT_SRC_DIR}/gettext-${CT_GETTEXT_VERSION}/configure" \
|
||||
--build=${CT_BUILD} \
|
||||
--host="${host}" \
|
||||
|
@ -55,6 +55,7 @@ do_make_backend() {
|
||||
CT_DoExecLog CFG \
|
||||
CFLAGS="${cflags}" \
|
||||
LDFLAGS="${ldflags}" \
|
||||
${CONFIG_SHELL} \
|
||||
"${CT_SRC_DIR}/make-${CT_MAKE_VERSION}/configure" \
|
||||
--host="${host}" \
|
||||
--prefix="${prefix}"
|
||||
|
@ -57,6 +57,7 @@ do_m4_backend() {
|
||||
CT_DoExecLog CFG \
|
||||
CFLAGS="${cflags}" \
|
||||
LDFLAGS="${ldflags}" \
|
||||
${CONFIG_SHELL} \
|
||||
"${CT_SRC_DIR}/m4-${CT_M4_VERSION}/configure" \
|
||||
--host="${host}" \
|
||||
--prefix="${prefix}"
|
||||
|
@ -40,7 +40,8 @@ do_autoconf_backend() {
|
||||
# For reference see:
|
||||
# http://www.gnu.org/software/autoconf/manual/autoconf.html#CONFIG_005fSHELL
|
||||
CT_DoLog EXTRA "Configuring autoconf"
|
||||
CT_DoExecLog CFG ${CONFIG_SHELL} \
|
||||
CT_DoExecLog CFG \
|
||||
${CONFIG_SHELL} \
|
||||
"${CT_SRC_DIR}/autoconf-${CT_AUTOCONF_VERSION}/configure" \
|
||||
--host="${host}" \
|
||||
--prefix="${prefix}"
|
||||
|
@ -36,7 +36,9 @@ do_automake_backend() {
|
||||
done
|
||||
|
||||
CT_DoLog EXTRA "Configuring automake"
|
||||
CT_DoExecLog CFG "${CT_SRC_DIR}/automake-${CT_AUTOMAKE_VERSION}/configure" \
|
||||
CT_DoExecLog CFG \
|
||||
${CONFIG_SHELL} \
|
||||
"${CT_SRC_DIR}/automake-${CT_AUTOMAKE_VERSION}/configure" \
|
||||
--host="${host}" \
|
||||
--prefix="${prefix}"
|
||||
|
||||
|
@ -36,7 +36,9 @@ do_libtool_backend() {
|
||||
done
|
||||
|
||||
CT_DoLog EXTRA "Configuring libtool"
|
||||
CT_DoExecLog CFG "${CT_SRC_DIR}/libtool-${CT_LIBTOOL_VERSION}/configure" \
|
||||
CT_DoExecLog CFG \
|
||||
${CONFIG_SHELL} \
|
||||
"${CT_SRC_DIR}/libtool-${CT_LIBTOOL_VERSION}/configure" \
|
||||
--host="${host}" \
|
||||
--prefix="${prefix}"
|
||||
|
||||
|
@ -128,6 +128,7 @@ do_debug_gdb_build() {
|
||||
CC="${CC_for_gdb}" \
|
||||
CXX="${CXX_for_gdb}" \
|
||||
LD="${LD_for_gdb}" \
|
||||
${CONFIG_SHELL} \
|
||||
"${gdb_src_dir}/configure" \
|
||||
--build=${CT_BUILD} \
|
||||
--host=${CT_HOST} \
|
||||
@ -239,6 +240,7 @@ do_debug_gdb_build() {
|
||||
CC="${CC_for_gdb}" \
|
||||
CXX="${CXX_for_gdb}" \
|
||||
LD="${LD_for_gdb}" \
|
||||
${CONFIG_SHELL} \
|
||||
"${gdb_src_dir}/configure" \
|
||||
--build=${CT_BUILD} \
|
||||
--host=${CT_TARGET} \
|
||||
@ -309,6 +311,7 @@ do_debug_gdb_build() {
|
||||
CPP="${CT_TARGET}-cpp" \
|
||||
LD="${CT_TARGET}-ld" \
|
||||
LDFLAGS="${gdbserver_LDFLAGS}" \
|
||||
${CONFIG_SHELL} \
|
||||
"${gdb_src_dir}/gdb/gdbserver/configure" \
|
||||
--build=${CT_BUILD} \
|
||||
--host=${CT_TARGET} \
|
||||
|
@ -42,9 +42,11 @@ do_debug_ltrace_build() {
|
||||
HOST="${ltrace_host}" \
|
||||
HOST_OS="${CT_TARGET_KERNEL}" \
|
||||
CFLAGS="${CT_TARGET_CFLAGS}" \
|
||||
${CONFIG_SHELL} \
|
||||
./configure --prefix=/usr
|
||||
else
|
||||
CT_DoExecLog CFG \
|
||||
${CONFIG_SHELL} \
|
||||
./configure \
|
||||
--build=${CT_BUILD} \
|
||||
--host=${CT_TARGET} \
|
||||
|
@ -22,6 +22,7 @@ do_debug_strace_build() {
|
||||
CC="${CT_TARGET}-${CT_CC}" \
|
||||
CPP="${CT_TARGET}-cpp" \
|
||||
LD="${CT_TARGET}-ld" \
|
||||
${CONFIG_SHELL} \
|
||||
"${CT_SRC_DIR}/strace-${CT_STRACE_VERSION}/configure" \
|
||||
--build=${CT_BUILD} \
|
||||
--host=${CT_TARGET} \
|
||||
|
@ -22,6 +22,7 @@ do_libc_configure() {
|
||||
CT_DoLog EXTRA "Configuring C library"
|
||||
|
||||
CT_DoExecLog CFG \
|
||||
${CONFIG_SHELL} \
|
||||
./configure \
|
||||
--build=${CT_BUILD} \
|
||||
--host=${CT_TARGET} \
|
||||
|
@ -502,6 +502,7 @@ do_libc_locales() {
|
||||
|
||||
CT_DoExecLog CFG \
|
||||
CFLAGS="${glibc_cflags}" \
|
||||
${CONFIG_SHELL} \
|
||||
"${src_dir}/configure" \
|
||||
--prefix=/usr \
|
||||
--cache-file="$(pwd)/config.cache" \
|
||||
|
@ -48,6 +48,7 @@ do_libc_start_files() {
|
||||
|
||||
do_set_mingw_install_prefix
|
||||
CT_DoExecLog CFG \
|
||||
${CONFIG_SHELL} \
|
||||
"${CT_SRC_DIR}/mingw-w64-${CT_WINAPI_VERSION_DOWNLOADED}/mingw-w64-headers/configure" \
|
||||
--build=${CT_BUILD} \
|
||||
--host=${CT_TARGET} \
|
||||
@ -93,6 +94,7 @@ do_mingw_tools() {
|
||||
CT_mkdir_pushd "${CT_BUILD_DIR}/build-mingw-w64-tools/${f}"
|
||||
|
||||
CT_DoExecLog CFG \
|
||||
${CONFIG_SHELL} \
|
||||
"${CT_SRC_DIR}/mingw-w64-${CT_WINAPI_VERSION_DOWNLOADED}/mingw-w64-tools/${f}/configure" \
|
||||
--build=${CT_BUILD} \
|
||||
--host=${CT_HOST} \
|
||||
@ -119,6 +121,7 @@ do_libc() {
|
||||
|
||||
do_set_mingw_install_prefix
|
||||
CT_DoExecLog CFG \
|
||||
${CONFIG_SHELL} \
|
||||
"${CT_SRC_DIR}/mingw-w64-${CT_WINAPI_VERSION_DOWNLOADED}/mingw-w64-crt/configure" \
|
||||
--with-sysroot=${CT_SYSROOT_DIR} \
|
||||
--prefix=${MINGW_INSTALL_PREFIX} \
|
||||
@ -158,6 +161,7 @@ do_pthreads() {
|
||||
CT_mkdir_pushd "${CT_BUILD_DIR}/build-mingw-w64-winpthreads"
|
||||
|
||||
CT_DoExecLog CFG \
|
||||
${CONFIG_SHELL} \
|
||||
"${CT_SRC_DIR}/mingw-w64-${CT_WINAPI_VERSION_DOWNLOADED}/mingw-w64-libraries/winpthreads/configure" \
|
||||
--with-sysroot=${CT_SYSROOT_DIR} \
|
||||
--prefix=${MINGW_INSTALL_PREFIX} \
|
||||
|
@ -110,6 +110,7 @@ do_libc_backend_once() {
|
||||
CT_DoExecLog CFG \
|
||||
CFLAGS="${extra_cflags[*]}" \
|
||||
CROSS_COMPILE="${CT_TARGET}-" \
|
||||
${CONFIG_SHELL} \
|
||||
${src_dir}/configure \
|
||||
--host="${multi_target}" \
|
||||
--target="${multi_target}" \
|
||||
|
@ -130,6 +130,7 @@ ENABLE_TARGET_OPTSPACE:target-optspace
|
||||
CFLAGS_FOR_TARGET="${cflags_for_target}" \
|
||||
AR_FOR_TARGET="`which ${CT_TARGET}-gcc-ar`" \
|
||||
RANLIB_FOR_TARGET="`which ${CT_TARGET}-gcc-ranlib`" \
|
||||
${CONFIG_SHELL} \
|
||||
"${CT_SRC_DIR}/newlib-${CT_LIBC_VERSION}/configure" \
|
||||
--host=${CT_BUILD} \
|
||||
--target=${CT_TARGET} \
|
||||
|
Loading…
Reference in New Issue
Block a user