summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWerner Zeh <werner.zeh@siemens.com>2019-04-01 12:52:30 +0200
committerPatrick Georgi <pgeorgi@google.com>2019-04-03 05:29:16 +0000
commit622a28d22b917dec29d8b75aab8cdf55300a7e4c (patch)
tree724215b80c1e1ae3fd60a12cb36816fcfb9ec5fb
parent74dec7f51d96b154704f7ace3c84b3073945f7f5 (diff)
downloadcoreboot-622a28d22b917dec29d8b75aab8cdf55300a7e4c.tar.xz
util/kconfig: Fix missing library issue with ld 2.24 and newer
When invoking 'make menuconfig' with gcc 4.9.2 an error is thrown: ld: build/util/kconfig/lxdialog/checklist.o: undefined reference to symbol 'acs_map' This happens with ld version 2.24 and newer when menuconfig is executed for the first time after make clean. This does not happen with ld 2.20 (part of gcc 4.4.7). It can be fixed with the flag -ltinfo in HOST_LOADLIBES. Change-Id: I6216bb4d276d4bf98aa4ec06457b809fdcd73235 Signed-off-by: Werner Zeh <werner.zeh@siemens.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/32137 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
-rw-r--r--util/kconfig/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/util/kconfig/Makefile b/util/kconfig/Makefile
index a79229d975..147b125b96 100644
--- a/util/kconfig/Makefile
+++ b/util/kconfig/Makefile
@@ -133,7 +133,8 @@ check-lxdialog := $(srck)/lxdialog/check-lxdialog.sh
# we really need to do so. (Do not call gcc as part of make mrproper)
HOST_EXTRACFLAGS += $(shell $(CONFIG_SHELL) $(check-lxdialog) -ccflags) \
-DLOCALE
-HOST_LOADLIBES = $(shell $(CONFIG_SHELL) $(check-lxdialog) -ldflags $(HOSTCC))
+HOST_LOADLIBES = $(shell $(CONFIG_SHELL) $(check-lxdialog) \
+ -ldflags $(HOSTCC)) -ltinfo
# ===========================================================================