summaryrefslogtreecommitdiffstats
path: root/ci/build_picotls.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 07:30:55 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 07:30:55 +0000
commit17e81f2cd1843f01838245eae7b5ed5edf83d6be (patch)
treea0f685dff11ce5a2dc546a7b46a48bae5d1c0140 /ci/build_picotls.sh
parentInitial commit. (diff)
downloadngtcp2-9c3f4ee73f8e39be2ea20b43d7bf77306a45fc89.tar.xz
ngtcp2-9c3f4ee73f8e39be2ea20b43d7bf77306a45fc89.zip
Adding upstream version 0.12.1+dfsg.upstream/0.12.1+dfsgupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'ci/build_picotls.sh')
-rwxr-xr-xci/build_picotls.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/ci/build_picotls.sh b/ci/build_picotls.sh
new file mode 100755
index 0000000..3b85ff9
--- /dev/null
+++ b/ci/build_picotls.sh
@@ -0,0 +1,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)"