boost: do not fail when no shared libs were build 1504/head
authorHauke Mehrtens <hauke@hauke-m.de>
Mon, 29 Jun 2015 19:25:34 +0000 (21:25 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Mon, 29 Jun 2015 21:44:15 +0000 (23:44 +0200)
When only boost is selected without any specific boost library no *.so
file will be build and the InstallDev part is failing. Instead of
checking if there is a lib directory just try to copy the libs and do
not fail in case of an error.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
libs/boost/Makefile

index b54ea1e84ccd3cf7f839fdd40c3f374ccdfd29ed..ef0f31f0238e83c9b4ee3ca10f46e0c543141094 100644 (file)
@@ -226,16 +226,9 @@ define Build/InstallDev
                $(1)/usr/include/boost/ \
                # copies _all_ header files - independent of <--with-library>-argument above
 
-       if [ -d $(PKG_INSTALL_DIR)/lib ]; then \
-               $(INSTALL_DIR) \
-                       $(1)/usr/lib; \
-               $(CP) \
-                       $(PKG_INSTALL_DIR)/lib/*.a \
-                       $(1)/usr/lib/; \
-               $(CP) \
-                       $(PKG_INSTALL_DIR)/lib/*.so* \
-                       $(1)/usr/lib/; \
-       fi
+       $(INSTALL_DIR) $(1)/usr/lib
+       -$(CP) $(PKG_INSTALL_DIR)/lib/*.a $(1)/usr/lib/
+       -$(CP) $(PKG_INSTALL_DIR)/lib/*.so* $(1)/usr/lib/
 endef
 
 define Host/Install