Pārlūkot izejas kodu

tools/squashfs(4): use $(HOSTCC) to avoid building with clang on recent mac os x. the clang build fails with some linker errors

SVN-Revision: 32706
Felix Fietkau 13 gadi atpakaļ
vecāks
revīzija
08c7eae8f6
2 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  1. 1 0
      tools/squashfs/Makefile
  2. 1 0
      tools/squashfs4/Makefile

+ 1 - 0
tools/squashfs/Makefile

@@ -20,6 +20,7 @@ include $(INCLUDE_DIR)/host-build.mk
 
 define Host/Compile
 	$(MAKE) -C $(HOST_BUILD_DIR)/squashfs-tools \
+		CC="$(HOSTCC)" \
 		LZMAPATH=$(STAGING_DIR_HOST)/lib \
 		mksquashfs-lzma unsquashfs-lzma 
 endef

+ 1 - 0
tools/squashfs4/Makefile

@@ -20,6 +20,7 @@ include $(INCLUDE_DIR)/host-build.mk
 
 define Host/Compile
 	$(MAKE) -C $(HOST_BUILD_DIR)/squashfs-tools \
+		CC="$(HOSTCC)" \
 		XZ_SUPPORT=1 \
 		LZMA_XZ_SUPPORT=1 \
 		XATTR_SUPPORT= \