make.sh: rename option nix32 to linux32 according to aquynh's advise. Also update COMPILE-NIX.md to reflect this change.

This commit is contained in:
idl3r 2016-08-17 20:27:08 +08:00
parent dc6ab13d8b
commit dcd06b087f
2 changed files with 4 additions and 4 deletions

View file

@ -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:

View file

@ -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;;