Browse Source

fix install when static build is off

Waldemar Brodkorb 9 years ago
parent
commit
2e9b3d3552
1 changed files with 2 additions and 0 deletions
  1. 2 0
      package/bzip2/Makefile

+ 2 - 0
package/bzip2/Makefile

@@ -56,7 +56,9 @@ bzip2-hostinstall:
 do-install:
 	${INSTALL_DIR} $(STAGING_TARGET_DIR)/usr/include
 	$(CP) $(WRKBUILD)/bzlib.h $(STAGING_TARGET_DIR)/usr/include
+ifeq ($(ADK_TARGET_USE_STATIC_LIBS),y)
 	$(CP) ${WRKBUILD}/libbz2.a ${STAGING_TARGET_DIR}/usr/lib
+endif
 
 libbz2-install:
 	${INSTALL_DIR} ${IDIR_LIBBZ2}/usr/lib