From 779a67d83768e5f0b25fdb587abfa75eaccc517f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michael=20B=C3=BCsch?= Date: Fri, 27 Aug 2010 16:12:57 +0000 Subject: [PATCH] qt4: Fix non-GUI build SVN-Revision: 22822 --- Xorg/lib/qt4/Config.in | 2 +- Xorg/lib/qt4/Makefile | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Xorg/lib/qt4/Config.in b/Xorg/lib/qt4/Config.in index 903850a9a4..bf3fbbfce7 100644 --- a/Xorg/lib/qt4/Config.in +++ b/Xorg/lib/qt4/Config.in @@ -1,6 +1,6 @@ choice prompt "qt4 window system" - depends on PACKAGE_qt4 + depends on PACKAGE_qt4 && PACKAGE_qt4-gui default QT4_WS_QWS config QT4_WS_QWS diff --git a/Xorg/lib/qt4/Makefile b/Xorg/lib/qt4/Makefile index 160975f3b9..847034af13 100644 --- a/Xorg/lib/qt4/Makefile +++ b/Xorg/lib/qt4/Makefile @@ -258,6 +258,11 @@ endif ifeq ($(CONFIG_QT4_WS_X11),y) FILEPFX:=x11- endif +ifeq ($(CONFIG_PACKAGE_qt4-gui),) + # If GUI is disabled, we use the X11 prefix. That's good enough, for now. + # The X11 files also work for non-GUI. + FILEPFX:=x11- +endif define Build/Configure # NOTES: @@ -300,8 +305,7 @@ define Build/Configure -nomake translations \ -xplatform $(QMAKE_PLATFORM_PREFIX)linux-openwrt-g++ \ -platform linux-g++ \ - $(if $(CONFIG_QT4_WS_QWS),-embedded) \ - $(if $(CONFIG_QT4_WS_X11),-x11) \ + $(if $(CONFIG_QT4_WS_X11),-x11,-embedded) \ -release \ -confirm-license \ -opensource \ -- 2.30.2