Download golang
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