@@ -636,6 +636,8 @@ enable_gdb
636636with_guile
637637with_system_zlib
638638configure_host
639+ host_cxxflags
640+ host_cflags
639641target_cxxflags
640642target_cflags
641643cmodel
@@ -652,9 +654,10 @@ WITH_ISA_SPEC
652654WITH_TUNE
653655WITH_ABI
654656WITH_ARCH
655- enable_default_pie
656657vendor_alias
657658vendor
659+ enable_default_pie
660+ host_debug_info
658661debug_info
659662default_target
660663FETCHER
@@ -718,6 +721,7 @@ ac_user_opts='
718721enable_option_checking
719722enable_linux
720723enable_debug_info
724+ enable_host_debug_info
721725enable_default_pie
722726with_vendor
723727with_vendor_alias
@@ -734,6 +738,8 @@ enable_gcc_checking
734738with_cmodel
735739with_target_cflags
736740with_target_cxxflags
741+ with_host_cflags
742+ with_host_cxxflags
737743with_host
738744with_system_zlib
739745with_guile
@@ -1386,6 +1392,9 @@ Optional Features:
13861392 [--disable-linux]
13871393 --enable-debug-info build glibc/musl/newlibc/libgcc with debug
13881394 information
1395+ --enable-host-debug-info
1396+ build host Binutils, GDB and GCC with debug
1397+ information
13891398 --enable-default-pie build linux toolchain with default PIE
13901399 [--enable-default-pie]
13911400 --enable-multilib build both RV32 and RV64 runtime libraries
@@ -1402,10 +1411,10 @@ Optional Features:
14021411Optional Packages:
14031412 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
14041413 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1405- --with-arch=rv64gc Sets the base RISC-V ISA, defaults to rv64gc
14061414 --with-vendor=unknown Sets the vendor part of the triplet
14071415 --with-vendor-alias=unknown
14081416 Sets the vendor part of the triplet alias
1417+ --with-arch=rv64gc Sets the base RISC-V ISA, defaults to rv64gc
14091418 --with-abi=lp64d Sets the base RISC-V ABI, defaults to lp64d
14101419 --with-tune=rocket Set the base RISC-V CPU, defaults to rocket
14111420 --with-isa-spec=20191213
@@ -1431,6 +1440,9 @@ Optional Packages:
14311440 libgcc [--with-cmodel=medlow]
14321441 --with-target-cflags Add extra target flags for C for library code
14331442 --with-target-cxxflags Add extra target flags for C++ for library code
1443+ --with-host-cflags Add extra flags for C for host Binutils, GDB and GCC
1444+ --with-host-cxxflags Add extra flags for C++ for host Binutils, GDB and
1445+ GCC
14341446 --with-host=x86_64-w64-mingw32
14351447 Sets the host for the tools, you probably want
14361448 nothing
@@ -3974,6 +3986,33 @@ else $as_nop
39743986
39753987fi
39763988
3989+ # Check whether --enable-host_debug_info was given.
3990+ if test ${enable_host_debug_info+y}
3991+ then :
3992+ enableval=$enable_host_debug_info ; enable_host_debug_info=yes
3993+ else $as_nop
3994+ enable_host_debug_info=no
3995+
3996+ fi
3997+
3998+
3999+ if test " x$enable_host_debug_info " ! = xyes
4000+ then :
4001+ disable_host_debug_info=yes
4002+ else $as_nop
4003+ disable_host_debug_info=no
4004+
4005+ fi
4006+
4007+ if test " x$enable_host_debug_info " ! = xyes
4008+ then :
4009+ host_debug_info=" "
4010+
4011+ else $as_nop
4012+ host_debug_info=" -g"
4013+
4014+ fi
4015+
39774016# Check whether --enable-default-pie was given.
39784017if test ${enable_default_pie+y}
39794018then :
@@ -3994,21 +4033,22 @@ else $as_nop
39944033fi
39954034
39964035
3997-
39984036# Check whether --with-vendor was given.
3999- if test " ${with_vendor+set} " = set ; then :
4037+ if test ${with_vendor+y}
4038+ then :
40004039 withval=$with_vendor ;
4001- else
4040+ else $as_nop
40024041 with_vendor=unknown
40034042
40044043fi
40054044
40064045
40074046
40084047# Check whether --with-vendor_alias was given.
4009- if test " ${with_vendor_alias+set} " = set ; then :
4048+ if test ${with_vendor_alias+y}
4049+ then :
40104050 withval=$with_vendor_alias ;
4011- else
4051+ else $as_nop
40124052 with_vendor_alias=unknown
40134053
40144054fi
@@ -4254,6 +4294,25 @@ fi
42544294target_cxxflags=$with_target_cxxflags
42554295
42564296
4297+
4298+ # Check whether --with-host_cflags was given.
4299+ if test ${with_host_cflags+y}
4300+ then :
4301+ withval=$with_host_cflags ;
4302+ fi
4303+
4304+ host_cflags=$with_host_cflags
4305+
4306+
4307+ # Check whether --with-host_cxxflags was given.
4308+ if test ${with_host_cxxflags+y}
4309+ then :
4310+ withval=$with_host_cxxflags ;
4311+ fi
4312+
4313+ host_cxxflags=$with_host_cxxflags
4314+
4315+
42574316ac_config_files=" $ac_config_files Makefile"
42584317
42594318ac_config_files=" $ac_config_files scripts/wrapper/awk/awk"
0 commit comments