make.sh: add nix32 option
This commit is contained in:
parent
cd86da383b
commit
dc6ab13d8b
11
make.sh
11
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;;
|
||||
|
Loading…
Reference in New Issue
Block a user