build: fix xconfig target
authorleo chung <gewalalb@gmail.com>
Fri, 20 Sep 2019 05:33:58 +0000 (13:33 +0800)
committerRISCi_ATOM <bob@bobcall.me>
Thu, 10 Oct 2019 15:56:00 +0000 (11:56 -0400)
commit338910321eb0c1388a78a4f6f03304fa9176169c
tree70238b166a5a05f3d2833475307e2676317d3d4b
parentba19af29508bd96f652412eb84ad2c9391ee5400
build: fix xconfig target

`make xconfig` fails with following linking error of qconf binary:

 g++ -lQt5Widgets -lQt5Gui -lQt5Core -o qconf qconf.o zconf.tab.o
 /usr/bin/ld: qconf.o: in function ConfigList::metaObject() const': qconf.cc:(.text+0x3eb): undefined reference to QObjectData::dynamicMetaObject() const'
 /usr/bin/ld: qconf.o: in function `ConfigList::qt_metacast(char const*)': link error.

which is caused by the wrong order of the linked objects/libraries so
this patch reorders the linker's arguments which makes the qconf compile
again.

Signed-off-by: leo chung <gewalalb@gmail.com>
[commit subject and message tweaks, whitespace fix]
Signed-off-by: Petr Štetiar <ynezz@true.cz>
(cherry picked from commit b2c55d50f8aeb21ef4cd3948034a158f7dd743c2)
scripts/config/Makefile