In step 13, where there is the current TODO regarding OpenSSL, I am trying the following...
The build mostly completes fine. It builds for a few minutes, seemingly compiling OpenSSL fine along with it. When I build it the exact same way without the custom OpenSSL module, it builds fine using the system installed version of OpenSSL. However, with the custom OpenSSL, it eventually errors out with the following error. I have also tried the same process with several other recent releases of OpenSSL with no success.
-Wl,-Bsymbolic-functions -fPIE -pie -Wl,-z,relro -Wl,-z,now -lpthread -lcrypt -lstdc++ /opt/nginx/nginx-1.9.3/debian/modules/ngx_pagespeed-1.9.32.6-beta/psol/lib/Debug/linux/x64/pagespeed_automatic.a -lrt -pthread -lm -lpcre /opt/nginx/nginx-1.9.3/debian/modules/openssl-1.0.2d/.openssl/lib/libssl.a /opt/nginx/nginx-1.9.3/debian/modules/openssl-1.0.2d/.openssl/lib/libcrypto.a -ldl -lz
/usr/bin/ld: /opt/nginx/nginx-1.9.3/debian/modules/openssl-1.0.2d/.openssl/lib/libssl.a(s23_meth.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/opt/nginx/nginx-1.9.3/debian/modules/openssl-1.0.2d/.openssl/lib/libssl.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
objs/Makefile:272: recipe for target 'objs/nginx' failed
make[3]: *** [objs/nginx] Error 1
make[3]: Leaving directory '/opt/nginx/nginx-1.9.3/debian/build-light'
Makefile:8: recipe for target 'build' failed
make[2]: *** [build] Error 2
make[2]: Leaving directory '/opt/nginx/nginx-1.9.3/debian/build-light'
debian/rules:146: recipe for target 'build.arch.light' failed
make[1]: *** [build.arch.light] Error 2
make[1]: Leaving directory '/opt/nginx/nginx-1.9.3'
debian/rules:128: recipe for target 'build' failed
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2