Fix compile for Qt Embedded (qtopia4) based packages
authorThiago A. Corrêa <thiago.correa@gmail.com>
Mon, 6 Apr 2009 22:56:20 +0000 (22:56 -0000)
committerThiago A. Corrêa <thiago.correa@gmail.com>
Mon, 6 Apr 2009 22:56:20 +0000 (22:56 -0000)
package/qtopia4/qtopia4.mk

index 9ae065fad66379cadf313430565053bfcff1b537..37bf27883cbe7e11f9687a9ee6e75f4c15db9f10 100644 (file)
@@ -324,6 +324,8 @@ BR2_PACKAGE_QTOPIA4_EMB_PLATFORM:=$(strip $(subst ",, $(BR2_PACKAGE_QTOPIA4_EMB_
 
 QTOPIA4_QMAKE_CONF:=$(QTOPIA4_TARGET_DIR)/mkspecs/qws/linux-$(BR2_PACKAGE_QTOPIA4_EMB_PLATFORM)-g++/qmake.conf
 
+QTOPIA4_QMAKE_AR:=$(TARGET_AR) cqs
+
 # Variable for other Qt applications to use
 QTOPIA4_QMAKE:=$(STAGING_DIR)/usr/bin/qmake -spec qws/linux-$(BR2_PACKAGE_QTOPIA4_EMB_PLATFORM)-g++
 
@@ -366,7 +368,7 @@ endif
        $(call QTOPIA4_QMAKE_SET,CXX,$(TARGET_CXX))
        $(call QTOPIA4_QMAKE_SET,LINK,$(TARGET_CXX))
        $(call QTOPIA4_QMAKE_SET,LINK_SHLIB,$(TARGET_CXX))
-       $(call QTOPIA4_QMAKE_SET,AR,$(TARGET_AR))
+       $(call QTOPIA4_QMAKE_SET,AR,$(QTOPIA4_QMAKE_AR))
        $(call QTOPIA4_QMAKE_SET,OBJCOPY,$(TARGET_OBJCOPY))
        $(call QTOPIA4_QMAKE_SET,RANLIB,$(TARGET_RANLIB))
        $(call QTOPIA4_QMAKE_SET,STRIP,$(TARGET_STRIP))