qtopia4: fix build for !QTOPIA4_SHARED
authorPeter Korsgaard <jacmet@sunsite.dk>
Mon, 29 Jun 2009 12:29:20 +0000 (14:29 +0200)
committerPeter Korsgaard <jacmet@sunsite.dk>
Mon, 29 Jun 2009 12:29:20 +0000 (14:29 +0200)
Only try to copy the shared objects from staging to target if QT
is configured for shared objects.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/qtopia4/qtopia4.mk

index a198a41bd7d553a00dfdb491501a31f3ab767ecc..42825194d0176c57f2c40a641dc2a7b25d9d9ae5 100644 (file)
@@ -542,8 +542,8 @@ endif
 
 $(TARGET_DIR)/usr/lib/libQtCore.so.4: $(STAGING_DIR)/usr/lib/libQtCore.la $(QTOPIA4_LIBS)
        # Strip all installed libs
-       cp -dpf $(STAGING_DIR)/usr/lib/libQtCore.so.* $(TARGET_DIR)/usr/lib/
 ifeq ($(BR2_PACKAGE_QTOPIA4_SHARED),y)
+       cp -dpf $(STAGING_DIR)/usr/lib/libQtCore.so.* $(TARGET_DIR)/usr/lib/
        -$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/lib/libQt*.so.*
 endif