Welcome! Log In Create A New Profile

Advanced

Support to build nginx from an out-of-tree directory

Emmanuel Deloget
November 10, 2011 05:34AM
Hello list,

Attached you'll find a small patch that allow someone to build nginx from a
random directory. Its goal is to support the persons who want to test multiple
build of nginx, or people who do not want to pollute the nginx source tree
with files and directories that do not belong here.

Here is a sample use:

~$ tar zxvf nginx-1.0.9.tar.gz
~$ mkdir nginx-build && cd nginx-build
~$ ../nginx-1.0.9/configure --prefix=/home/me/nginx --user=me --group=me
~$ make && make install

The role of the patch is to find where the nginx source are located (thankfully,
this path is also the path were the configure script is stored) and to setup the
build directory in order to allow successfull compilation and installation of
nginx.

It successfully isolate the build directory from the source directory, unlike
the --builddir option (which still add some files in the source directory).

Signed-Off-By: Emmanuel Deloget <logout@free.fr>

Best regards,

-- Emmanuel Deloget
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

Support to build nginx from an out-of-tree directory

Emmanuel Deloget 1407 November 10, 2011 05:34AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 257
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready