Configuration summary
+ using system PCRE library
+ using OpenSSL library: /usr/local/src/openssl
+ md5: using OpenSSL library
+ sha1 library is not used
+ using system zlib library
but,
make -j5
fails with,
make -f objs/Makefile
make[1]: Entering directory /data/src/nginx-0.8.35' cd /usr/local/src/openssl \ && make clean \ && ./config --prefix=/usr/local/src/openssl/.openssl no-shared no-threads \ && make \ && make install make[2]: Entering directory/data/src/openssl’
make[2]: *** No rule to make target clean'. Stop. make[2]: Leaving directory/data/src/openssl’
make[1]: *** [/usr/local/src/openssl/.openssl/include/openssl/ssl.h]
Error 2
make[1]: Leaving directory `/data/src/nginx-0.8.35’
make: *** [build] Error 2
I’d normally set ldflags, cppflags and cflags … but, afaict, they’re
not referenced in nginx source,
egrep -i “ldflags|cflags|cppflags” .
(empty)
How do I configure/build nging to use ‘my’ openssl?
Either you don’t have OpenSSL sources in /usr/local/src/openssl/
or they are corrupted somehow. Vanilla OpenSSL 1.0.0 sources do
have Makefile with target ‘clean’, try re-extracting them (if you
really want nginx to build them instead of using already installed
version).
I’d normally set ldflags, cppflags and cflags … but, afaict, they’re
not referenced in nginx source,
egrep -i “ldflags|cflags|cppflags” .
(empty)
nginx do honor CFLAGS (use -r in grep, it helps), but not LDFLAGS.
How do I configure/build nging to use ‘my’ openssl?
If you want to use installed version, use:
./configure --with-cc-opt=“-I /path/to/include” --with-ld-opt=“-L /path/to/lib”
…
These options are used to build OpenSSL library from sources.
Additional options are passed to OpenSSL’s ./config.
That clears it up, thanks. ‘cc-opt’ & ‘ld-opt’ were simply not clear to
me.
I removed the --with-openssl= (though those are vanilla sources
…), and added,