summaryrefslogtreecommitdiffstats
path: root/ci/build_picotls.sh
blob: 3b85ff98b5a96370a13e84f9260f9dc9d49921a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh -e
# build picotls (for GitHub workflow)

git clone https://github.com/h2o/picotls/
cd picotls
git checkout 5e01b2b94dc77c500ed4fc0eaa77bd0cbe8e9274
git submodule update --init
mkdir build
cd build
PKG_CONFIG_PATH=$PWD/../../openssl/build/lib/pkgconfig:$PWD/../../openssl/build/lib64/pkgconfig cmake -DCMAKE_POSITION_INDEPENDENT_CODE=ON ..
make -j"$(nproc 2> /dev/null || sysctl -n hw.ncpu)"