From aa49ce3a9e04d95ac05e8b7aea9d711b1b42e9df Mon Sep 17 00:00:00 2001 From: mfonville Date: Sat, 27 Feb 2016 17:13:04 +0100 Subject: [PATCH] Updated XZ compile instructions as provided by @YashdSaraf --- scripts/xz-resources/HOWTO | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/xz-resources/HOWTO b/scripts/xz-resources/HOWTO index 41c30f5..342555e 100644 --- a/scripts/xz-resources/HOWTO +++ b/scripts/xz-resources/HOWTO @@ -1,12 +1,12 @@ Fetch XZ sources from fetch the source of XZ from http://tukaani.org/xz/ -To compile xzdec for arm: -./configure --host=arm-linux-androideabi --enable-static --disable-shared LDFLAGS=-static -make LDFLAGS=-all-static +To compile for ARM: +./configure --host=arm-linux --disable-shared --enable-static CFLAGS="--sysroot=/path_to_toolchain/arm-uClibc/arm-rorschack-linux-uclibcgnueabihf/sysroot -Os" LDFLAGS=--static +arm-linux-strip -s src/xzdec/xzdec To compile for x86: -./configure --enable-static --disable-shared "CFLAGS=-m32" "CPPFLAGS=-m32" "CXXFLAGS=-m32" "LDFLAGS=-static -m32" -make LDFLAGS=-all-static +./configure --host=i586-linux --disable-shared --enable-static CFLAGS="--sysroot=/path_to_toolchain/x86-uClibc/i586-rorschack-linux-uclibc/sysroot -Os" LDFLAGS=--static +i586-linux-strip -s src/xzdec/xzdec The xzdec binaries bundled with The Open GApps Project were compiled by @YashdSaraf