mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-01-19 11:17:00 +00:00
Merge pull request #287 from bhundven/binutils_gdb_configure
binutils/gdb: Fix configure options when building from binutils-gdb repo
This commit is contained in:
commit
e68eff0754
@ -211,6 +211,10 @@ do_binutils_backend() {
|
||||
extra_config+=("--disable-multilib")
|
||||
fi
|
||||
|
||||
# Disable gdb when building from the binutils-gdb repository.
|
||||
extra_config+=("--disable-sim")
|
||||
extra_config+=("--disable-gdb")
|
||||
|
||||
[ "${CT_TOOLCHAIN_ENABLE_NLS}" != "y" ] && extra_config+=("--disable-nls")
|
||||
|
||||
CT_DoLog DEBUG "Extra config passed: '${extra_config[*]}'"
|
||||
|
@ -100,6 +100,11 @@ do_debug_gdb_build() {
|
||||
LD_for_gdb="${CT_HOST}-ld -static"
|
||||
fi
|
||||
|
||||
# Disable binutils options when building from the binutils-gdb repo.
|
||||
cross_extra_config+=("--disable-binutils")
|
||||
cross_extra_config+=("--disable-ld")
|
||||
cross_extra_config+=("--disable-gas")
|
||||
|
||||
CT_DoLog DEBUG "Extra config passed: '${cross_extra_config[*]}'"
|
||||
|
||||
CT_DoExecLog CFG \
|
||||
@ -186,6 +191,11 @@ do_debug_gdb_build() {
|
||||
|
||||
export ac_cv_func_strncmp_works=yes
|
||||
|
||||
# Disable binutils options when building from the binutils-gdb repo.
|
||||
native_extra_config+=("--disable-binutils")
|
||||
native_extra_config+=("--disable-ld")
|
||||
native_extra_config+=("--disable-gas")
|
||||
|
||||
CT_DoLog DEBUG "Extra config passed: '${native_extra_config[*]}'"
|
||||
|
||||
CT_DoExecLog CFG \
|
||||
@ -251,6 +261,11 @@ do_debug_gdb_build() {
|
||||
fi
|
||||
fi
|
||||
|
||||
# Disable binutils options when building from the binutils-gdb repo.
|
||||
gdbserver_extra_config+=("--disable-binutils")
|
||||
gdbserver_extra_config+=("--disable-ld")
|
||||
gdbserver_extra_config+=("--disable-gas")
|
||||
|
||||
CT_DoExecLog CFG \
|
||||
CC="${CT_TARGET}-gcc" \
|
||||
CPP="${CT_TARGET}-cpp" \
|
||||
|
Loading…
Reference in New Issue
Block a user