From 338910321eb0c1388a78a4f6f03304fa9176169c Mon Sep 17 00:00:00 2001 From: leo chung Date: Fri, 20 Sep 2019 13:33:58 +0800 Subject: [PATCH] build: fix xconfig target MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit `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 [commit subject and message tweaks, whitespace fix] Signed-off-by: Petr Å tetiar (cherry picked from commit b2c55d50f8aeb21ef4cd3948034a158f7dd743c2) --- scripts/config/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/config/Makefile b/scripts/config/Makefile index 92c924376f..8e9bbe0a5b 100644 --- a/scripts/config/Makefile +++ b/scripts/config/Makefile @@ -40,7 +40,7 @@ mconf: $(mconf-objs) $(lxdialog-objs) $(CC) -o $@ $^ $(call check_lxdialog,ldflags $(CC)) qconf: $(qconf-cxxobjs) $(qconf-objs) ifneq ($(DISTRO-PKG-CONFIG),) - $(CXX) $(HOSTLOADLIBES_qconf) -o $@ $^ + $(CXX) -o $@ $^ $(HOSTLOADLIBES_qconf) else echo "You don't have 'pkg-config' installed. Cannot continue" echo "For now, you may use 'make menuconfig' instead of 'make xconfig'" -- 2.25.1