]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - lfs/unzip
Merge branch 'next' into initscripts-cleanup
[ipfire-2.x.git] / lfs / unzip
index 15e7967eda1a14c4facf0e7c0d8531378d7c58ca..f479d7e9f9fab3d42eebcf641e0080c075b1aa92 100644 (file)
--- a/lfs/unzip
+++ b/lfs/unzip
@@ -70,7 +70,12 @@ $(subst %,%_MD5,$(objects)) :
 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        @$(PREBUILD)
        @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
+ifeq "$(MACHINE)" "i586"
        cd $(DIR_APP) && make -f unix/Makefile LOCAL_UNZIP=-D_FILE_OFFSET_BITS=64 linux
+else
+       # ARM/x86_64 cannot use the x86 32 bit assembly code.
+       cd $(DIR_APP) && make -f unix/Makefile LOCAL_UNZIP=-D_FILE_OFFSET_BITS=64 linux_noasm
+endif
        cd $(DIR_APP) && make prefix=/usr install
        @rm -rf $(DIR_APP)
        @$(POSTBUILD)