]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
unzip: Fix for ARM platform (cannot use x86 assembly).
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 2 Sep 2011 20:05:26 +0000 (20:05 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 2 Sep 2011 20:05:26 +0000 (20:05 +0000)
lfs/unzip

index 15e7967eda1a14c4facf0e7c0d8531378d7c58ca..d9278b70dc3a8251a0a8506759f5a387b6fc6d84 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)" "arm"
+       # ARM cannot use the x86 assembly code.
+       cd $(DIR_APP) && make -f unix/Makefile LOCAL_UNZIP=-D_FILE_OFFSET_BITS=64 linux_noasm
+else
        cd $(DIR_APP) && make -f unix/Makefile LOCAL_UNZIP=-D_FILE_OFFSET_BITS=64 linux
+endif
        cd $(DIR_APP) && make prefix=/usr install
        @rm -rf $(DIR_APP)
        @$(POSTBUILD)