aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/binutils/binutils.in6
-rw-r--r--config/configure.in.in3
2 files changed, 9 insertions, 0 deletions
diff --git a/config/binutils/binutils.in b/config/binutils/binutils.in
index 286ed4b5..2aa877fc 100644
--- a/config/binutils/binutils.in
+++ b/config/binutils/binutils.in
@@ -24,6 +24,12 @@ config BINUTILS_FORCE_LD_BFD_DEFAULT
config BINUTILS_FORCE_LD_BFD_ONLY
bool
+# Binutils 2.39 requires bison 3.0.4 or later for gprofng on x86/aarch64
+config BINUTILS_DEP_BISON
+ def_bool y
+ depends on BINUTILS_2_39_or_later && !CONFIGURE_has_bison_3_0_4_or_newer && (ARCH_X86 || (ARCH_ARM && ARCH_64))
+ select COMP_TOOLS_BISON
+
choice
bool
prompt "Linkers to enable"
diff --git a/config/configure.in.in b/config/configure.in.in
index a43fb61b..c67fd35f 100644
--- a/config/configure.in.in
+++ b/config/configure.in.in
@@ -54,6 +54,9 @@ config CONFIGURE_has_python_3_4_or_newer
config CONFIGURE_has_bison_2_7_or_newer
@KCONFIG_bison_2_7_or_newer@
+config CONFIGURE_has_bison_3_0_4_or_newer
+ @KCONFIG_bison_3_0_4_or_newer@
+
config CONFIGURE_has_python
@KCONFIG_python@