Skip to content

Instantly share code, notes, and snippets.

@kanwei
Last active May 27, 2023 13:31
Show Gist options
  • Save kanwei/452ce889e30129faec809269bac16fdf to your computer and use it in GitHub Desktop.
Save kanwei/452ce889e30129faec809269bac16fdf to your computer and use it in GitHub Desktop.
Building nginx 1.25 with QUIC/H3 on Debian 11

Download golang

https://go.dev/dl/

Extract and put binaries in /usr/local/bin

git clone --depth=1 https://github.com/google/boringssl.git

cd boringssl

cmake -B build GOROOT=PATH_TO_EXTRACTED_GO.tgz make -C build

edit debian/rules

export DEB_CFLAGS_MAINT_APPEND=-Wp,-D_FORTIFY_SOURCE=2 -fPIC -I /home/xxx/nginx-build/boringssl/include export DEB_LDFLAGS_MAINT_APPEND=-Wl,--as-needed -pie -L /home/xxx/nginx-build/boringssl/build/ssl -L /home/xxx/nginx-build/boringssl/build/crypto

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment