summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLarry Finger <Larry.Finger@lwfinger.net>2013-05-19 11:43:55 -0500
committerLuis R. Rodriguez <mcgrof@do-not-panic.com>2013-05-19 14:04:34 -0700
commit0beadb509909ae15dc892e88d0feb6c0a0a43e43 (patch)
tree7fdde9ddaf355fa9cc4ad58cf673a39ff89be1ad
parent80112f6793b9887e8d08bf2e235d20fb04e85e58 (diff)
backports: Fix menuconfig build
Upstream commit 8d10f3b2021e8644ee00cbc030290f45c4d176d9 Using openSUSE 12.3 with x86_64 architecture, the 'make menuconfig' command results in the following: finger@larrylap:~/backports-3.10-rc1-1> make menuconfig cc -Wl,--no-as-needed -lncurses mconf.o zconf.tab.o lxdialog/checklist.o lxdialog/inputbox.o lxdialog/menubox.o lxdialog/textbox.o lxdialog/util.o lxdialog/yesno.o -o mconf /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld: /lib64/libncurses.so.5: undefined reference to symbol 'acs_map' /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld: note: 'acs_map' is defined in DSO /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../lib64/libtinfo.so so try adding it to the linker command line /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../lib64/libtinfo.so: could not read symbols: Invalid operation collect2: error: ld returned 1 exit status make[2]: *** [mconf] Error 1 make[1]: *** [menuconfig] Error 2 make: *** [menuconfig] Error 2 finger@larrylap:~/backports-3.10-rc1-1> When "-ltinfo" is added to the LDFLAGS symbol as suggested by the linker, it builds and runs correctly. 1 2.6.24 [ OK ] 2 2.6.25 [ OK ] 3 2.6.26 [ OK ] 4 2.6.27 [ OK ] 5 2.6.28 [ OK ] 6 2.6.29 [ OK ] 7 2.6.30 [ OK ] 8 2.6.31 [ OK ] 9 2.6.32 [ OK ] 10 2.6.33 [ OK ] 11 2.6.34 [ OK ] 12 2.6.35 [ OK ] 13 2.6.36 [ OK ] 14 2.6.37 [ OK ] 15 2.6.38 [ OK ] 16 2.6.39 [ OK ] 17 3.0.76 [ OK ] 18 3.1.10 [ OK ] 19 3.2.44 [ OK ] 20 3.3.8 [ OK ] 21 3.4.43 [ OK ] 22 3.5.7 [ OK ] 23 3.6.11 [ OK ] 24 3.7.10 [ OK ] 25 3.8.11 [ OK ] 26 3.9.0 [ OK ] real 17m9.368s user 403m46.554s sys 95m42.811s Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net> [mcgrof: tested with ckmake] Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
-rw-r--r--backport/kconfig/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/backport/kconfig/Makefile b/backport/kconfig/Makefile
index 5974e48f..ff5c2701 100644
--- a/backport/kconfig/Makefile
+++ b/backport/kconfig/Makefile
@@ -3,7 +3,7 @@ CFLAGS=-Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer
LXDIALOG := lxdialog/checklist.o lxdialog/inputbox.o lxdialog/menubox.o lxdialog/textbox.o lxdialog/util.o lxdialog/yesno.o
conf: conf.o zconf.tab.o
-mconf: LDFLAGS = -Wl,--no-as-needed -lncurses
+mconf: LDFLAGS = -Wl,--no-as-needed -lncurses -ltinfo
mconf: CFLAGS += -DCURSES_LOC="<ncurses.h>" -DLOCALE
mconf: mconf.o zconf.tab.o $(LXDIALOG)