Bug 1890689 accumulate input in LargerReceiverBlockSizeThanDesiredBuffering GTest...
[gecko.git] / taskcluster / scripts / misc / build-xar-linux.sh
blob497e18217efc866fd4ce058b61b92d35ece915c0
1 #!/bin/bash
2 set -x -e -v
4 # This script is for building xar for Linux.
5 mkdir -p $UPLOAD_DIR
7 export PATH=$PATH:$MOZ_FETCHES_DIR/clang/bin
8 cd $MOZ_FETCHES_DIR/xar/xar
10 ./autogen.sh --prefix=/builds/worker --enable-static
12 # Force statically-linking to libcrypto. pkg-config --static will tell
13 # us the extra flags that are needed (in practice, -ldl -pthread),
14 # and -lcrypto, which we need to change to actually link statically.
15 CRYPTO=$(pkg-config --static --libs libcrypto | sed 's/-lcrypto/-l:libcrypto.a/')
16 sed -i "s/-lcrypto/$CRYPTO/" src/Makefile.inc
18 make_flags="-j$(nproc)"
19 make $make_flags
21 cd $(mktemp -d)
22 mkdir xar
24 cp $MOZ_FETCHES_DIR/xar/xar/src/xar ./xar/xar
25 tar caf $UPLOAD_DIR/xar.tar.zst ./xar