From dc6ab13d8bf09c034e2c08f6a143ba1669db5490 Mon Sep 17 00:00:00 2001 From: idl3r Date: Tue, 16 Aug 2016 14:38:09 +0800 Subject: [PATCH] make.sh: add nix32 option --- make.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/make.sh b/make.sh index c512f6e6..3c42c15a 100755 --- a/make.sh +++ b/make.sh @@ -57,6 +57,16 @@ build_cross() { ${MAKE} } +build_nix32() { + PKG_CONFIG_PATH="/usr/lib/i386-linux-gnu/pkgconfig" \ + CFLAGS=-m32 \ + LDFLAGS=-m32 \ + LDFLAGS_STATIC=-m32 \ + LIBRARY_PATH="/usr/lib/i386-linux-gnu" \ + UNICORN_QEMU_FLAGS="--cpu=i386" \ + ${MAKE} +} + install() { # Mac OSX needs to find the right directory for pkgconfig if [ "$UNAME" = Darwin ]; then @@ -117,6 +127,7 @@ case "$1" in "ios_armv7" ) build_iOS armv7;; "ios_armv7s" ) build_iOS armv7s;; "ios_arm64" ) build_iOS arm64;; + "nix32" ) build_nix32;; * ) echo "Usage: $0 ["`grep '^ "' $0 | cut -d '"' -f 2 | tr "\\n" "|"`"]" exit 1;;