Skip to content

Commit

Permalink
squashfs: use host cflags and fix for x86/x64 vmware firstboot
Browse files Browse the repository at this point in the history
  • Loading branch information
coolsnowwolf committed Oct 24, 2017
1 parent 4cb2f96 commit 5d1a43f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 0 additions & 4 deletions package/libs/lzo/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,6 @@ CONFIGURE_ARGS += \
TARGET_CFLAGS += $(FPIC)
MAKE_FLAGS += CFLAGS_O="$(TARGET_CFLAGS)"

ifeq ($(CONFIG_i386)$(CONFIG_x86_64),)
TARGET_CFLAGS += -DLZO_CFG_NO_UNALIGNED=1
endif

define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/include/lzo $(1)/usr/include/
Expand Down
1 change: 1 addition & 0 deletions tools/squashfs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ include $(INCLUDE_DIR)/host-build.mk
define Host/Compile
$(MAKE) -C $(HOST_BUILD_DIR)/squashfs-tools \
CC="$(HOSTCC)" \
CFLAGS="$(HOST_CFLAGS) -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I." \
CXX="$(CXX)" \
LZMAPATH=$(STAGING_DIR_HOST)/lib \
mksquashfs-lzma unsquashfs-lzma
Expand Down

0 comments on commit 5d1a43f

Please sign in to comment.