Welcome! Log In Create A New Profile

Advanced

Re: Use prebuilt Bzip, zLib and OpenSSL?

Maxim Dounin
January 11, 2022 08:28AM
Hello!

On Mon, Jan 10, 2022 at 10:40:09PM -0500, Jeffrey Walton wrote:

> I need to build a modern Nginx from sources on an older platform. The
> need arises because the organization can't upgrade a particular set of
> machines. We want to set up a Nginx proxy to handle the front-end
> work.
>
> I've got Bzip, zLib and OpenSSL built and installed in /opt, but I am
> having trouble getting Nginx to compile and [presumably] link against
> them. In this case we don't want Nginx building them from sources.
> Rather, we want Nginx to use the includes in /opt/include, and the
> libraries in /opt/lib.
>
> Typically GNU software using Autotools use an option like
> --with-openssl-prefix. Nginx does not provide the option. Nginx also
> does not provide the customary --includedir and --libdir. (And I
> understand Nginx is not GNU).
>
> How do we tell Nginx the prefix path for the libraries?

The --with-cc-opt and --with-ld-opt should work:

../configure --with-cc-opt="-I /opt/include" --with-ld-opt="-L /opt/lib" ...

See docs for details:

http://nginx.org/en/docs/configure.html

--
Maxim Dounin
http://mdounin.ru/
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Use prebuilt Bzip, zLib and OpenSSL?

noloader January 10, 2022 10:42PM

Re: Use prebuilt Bzip, zLib and OpenSSL?

Maxim Dounin January 11, 2022 08:28AM

Re: Use prebuilt Bzip, zLib and OpenSSL?

noloader January 11, 2022 03:46PM

Re: Use prebuilt Bzip, zLib and OpenSSL?

Thomas Ward January 11, 2022 04:04PM

Re: Use prebuilt Bzip, zLib and OpenSSL?

noloader January 11, 2022 04:12PM

Re: Use prebuilt Bzip, zLib and OpenSSL?

noloader January 11, 2022 04:28PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 120
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready