From: Johannes Berg Date: Thu, 4 Apr 2013 16:08:57 +0000 (+0200) Subject: kconfig: add --as-needed X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=af3c2d1b5c38abc6976841139678ec3384b25189;p=openwrt%2Fstaging%2Fblogic.git kconfig: add --as-needed 18:07 < *thierryE> It's seems that for my ld version, parameters order matters 18:07 < *thierryE> Yep 18:07 < *thierryE> mconf: LDFLAGS = -Wl,--no-as-needed -lncurses 18:08 < johill> so just add the -Wl,--no-as-needed ? 18:08 < *thierryE> Yes 18:08 < *thierryE> --as-needed is enabled by default for some config Signed-off-by: Johannes Berg --- diff --git a/backport/kconfig/Makefile b/backport/kconfig/Makefile index c534359cf74f..5974e48fa2f3 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 = -lncurses +mconf: LDFLAGS = -Wl,--no-as-needed -lncurses mconf: CFLAGS += -DCURSES_LOC="" -DLOCALE mconf: mconf.o zconf.tab.o $(LXDIALOG)