Why i cannot build nginx outside the source directory?

for example build and nginx_src are under the same directory, i can
build nginx in build directory, with …/nginx_src/configure then the
files generated in the build process will not pollute the source
directory of nginx, i tried this, but failed, anyone who knows what’s
the problem?
thank you:)

On Sun, Aug 21, 2011 at 06:04:02PM +0800, smith jack wrote:

for example build and nginx_src are under the same directory, i can
build nginx in build directory, with …/nginx_src/configure then the
files generated in the build process will not pollute the source
directory of nginx, i tried this, but failed, anyone who knows what’s
the problem?
thank you:)

I do not quite understand your question, but try

./configure --build-dir=/path/to/build/dir …
make


Igor S.