Browse Source

fix host build logic for non-linux

Waldemar Brodkorb 10 years ago
parent
commit
1b6a9fa3f1
2 changed files with 8 additions and 1 deletions
  1. 4 1
      package/alsa-lib/Makefile
  2. 4 0
      package/cups/Makefile

+ 4 - 1
package/alsa-lib/Makefile

@@ -22,8 +22,11 @@ include ${TOPDIR}/mk/package.mk
 $(eval $(call HOST_template,ALSA_LIB,alsa-lib,${PKG_VERSION}-${PKG_RELEASE}))
 $(eval $(call PKG_template,ALSA_LIB,alsa-lib,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
 
-HOST_STYLE:=		auto
+ifneq ($(ADK_HOST_LINUX),y)
 HOST_LINUX_ONLY:=	1
+endif
+
+HOST_STYLE:=		auto
 TARGET_CPPFLAGS+=	-D_POSIX_C_SOURCE=1
 CONFIGURE_ARGS+=	--disable-python
 

+ 4 - 0
package/cups/Makefile

@@ -24,6 +24,10 @@ include ${TOPDIR}/mk/package.mk
 $(eval $(call HOST_template,CUPS,cups,${PKG_VERSION}-${PKG_RELEASE}))
 $(eval $(call PKG_template,CUPS,cups,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
 
+ifneq ($(ADK_HOST_LINUX),y)
+HOST_LINUX_ONLY:=	1
+endif
+
 HOST_STYLE:=		auto
 HOST_CONFIGURE_ARGS+=	--disable-tcp-wrappers \
 			--disable-webif \