From dcd06b087f198b4e03cbffeb9aef80d9224a7f1c Mon Sep 17 00:00:00 2001 From: idl3r Date: Wed, 17 Aug 2016 20:27:08 +0800 Subject: [PATCH] make.sh: rename option nix32 to linux32 according to aquynh's advise. Also update COMPILE-NIX.md to reflect this change. --- docs/COMPILE-NIX.md | 4 ++-- make.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/COMPILE-NIX.md b/docs/COMPILE-NIX.md index 5ba90fa8..c56e9c45 100644 --- a/docs/COMPILE-NIX.md +++ b/docs/COMPILE-NIX.md @@ -74,9 +74,9 @@ To build Unicorn on *nix (such as MacOSX, Linux, *BSD, Solaris): $ UNICORN_QEMU_FLAGS="--python=/path/to/python2" ./make.sh -- To cross-compile Unicorn on 64-bit OS to target 32-bit binary, run: +- To cross-compile Unicorn on 64-bit Linux to target 32-bit binary, run: - $ ./make.sh nix32 + $ ./make.sh linux32 After compiling, install Unicorn with: diff --git a/make.sh b/make.sh index 3c42c15a..a41a7c8a 100755 --- a/make.sh +++ b/make.sh @@ -57,7 +57,7 @@ build_cross() { ${MAKE} } -build_nix32() { +build_linux32() { PKG_CONFIG_PATH="/usr/lib/i386-linux-gnu/pkgconfig" \ CFLAGS=-m32 \ LDFLAGS=-m32 \ @@ -127,7 +127,7 @@ case "$1" in "ios_armv7" ) build_iOS armv7;; "ios_armv7s" ) build_iOS armv7s;; "ios_arm64" ) build_iOS arm64;; - "nix32" ) build_nix32;; + "linux32" ) build_linux32;; * ) echo "Usage: $0 ["`grep '^ "' $0 | cut -d '"' -f 2 | tr "\\n" "|"`"]" exit 1;;