dev
sh 32 lines 706 Bytes
Raw
1 #!/bin/sh
2
3 . ./config.sh
4 ZMQ_SRC_DIR=$WORKDIR/libzmq
5 ZMQ_BRANCH=v4.3.3
6 ZMQ_COMMIT_HASH=04f5bbedee58c538934374dc45182d8fc5926fa3
7
8 for arch in "aarch" "aarch64" "i686" "x86_64"
9 do
10
11 PREFIX=$WORKDIR/prefix_${arch}
12 PATH="${TOOLCHAIN_BASE_DIR}_${arch}/bin:${ORIGINAL_PATH}"
13
14 case $arch in
15 "aarch" ) TARGET="arm";;
16 "i686" ) TARGET="x86";;
17 * ) TARGET="${arch}";;
18 esac
19
20
21 HOST="${TARGET}-linux-android"
22 cd $WORKDIR
23 rm -rf $ZMQ_SRC_DIR
24 git clone https://github.com/zeromq/libzmq.git ${ZMQ_SRC_DIR} -b ${ZMQ_BRANCH}
25 cd $ZMQ_SRC_DIR
26 git checkout ${ZMQ_COMMIT_HASH}
27 ./autogen.sh
28 CC=clang CXX=clang++ ./configure --prefix=${PREFIX} --host=${HOST} --enable-static --disable-shared
29 make -j$THREADS
30 make install
31
32 done