summaryrefslogtreecommitdiffhomepage
path: root/auto/os (unfollow)
AgeCommit message (Collapse)AuthorFilesLines
2023-03-29Auto: mirroring installation structure in build tree.Alejandro Colomar1-11/+11
This makes the build tree more organized, which is good for adding new stuff. Now, it's useful for example for adding manual pages in man3/, but it may be useful in the future for example for extending the build system to run linters (e.g., clang-tidy(1), Clang analyzer, ...) on the C source code. Previously, the build tree was quite flat, and looked like this (after `./configure && make`): $ tree -I src build build ├── Makefile ├── autoconf.data ├── autoconf.err ├── echo ├── libnxt.a ├── nxt_auto_config.h ├── nxt_version.h ├── unitd └── unitd.8 1 directory, 9 files And after this patch, it looks like this: $ tree -I src build build ├── Makefile ├── autoconf.data ├── autoconf.err ├── bin │ └── echo ├── include │ ├── nxt_auto_config.h │ └── nxt_version.h ├── lib │ ├── libnxt.a │ └── unit │ └── modules ├── sbin │ └── unitd ├── share │ └── man │ └── man8 │ └── unitd.8 └── var ├── lib │ └── unit ├── log │ └── unit └── run └── unit 17 directories, 9 files It also solves one issue introduced in 5a37171f733f ("Added default values for pathnames."). Before that commit, it was possible to run unitd from the build system (`./build/unitd`). Now, since it expects files in a very specific location, that has been broken. By having a directory structure that mirrors the installation, it's possible to trick it to believe it's installed, and run it from there: $ ./configure --prefix=./build $ make $ ./build/sbin/unitd Fixes: 5a37171f733f ("Added default values for pathnames.") Reported-by: Liam Crilly <liam@nginx.com> Reviewed-by: Konstantin Pavlov <thresh@nginx.com> Reviewed-by: Andrew Clayton <a.clayton@nginx.com> Cc: Andrei Zeliankou <zelenkov@nginx.com> Cc: Zhidao Hong <z.hong@f5.com> Signed-off-by: Alejandro Colomar <alx@nginx.com>
2021-12-03Printing version in "./configure" output.Valentin Bartenev1-1/+2
2019-11-07Respecting AR environment variable to configure ar binary.Valentin Bartenev2-12/+21
2018-08-06Unit application library.Max Romanov1-0/+22
Library now used in all language modules. Old 'nxt_app_*' code removed. See src/test/nxt_unit_app_test.c for usage sample.
2018-06-28Removed -mmacosx-version-min option.Igor Sysoev2-11/+0
2018-04-15Enabled exporting symbols for OpenBSD.Sergey Kandaurov1-1/+2
2018-03-28Aligned macosx-version-min flag for test and build environments.Igor Sysoev1-1/+1
The flag has been misaligned in the changeset 4979fe09d9cd.
2018-01-31Added Perl support.Alexander Borisov1-1/+1
2018-01-11Fixed DragonFly BSD shared memory implementation.Igor Sysoev2-1/+21
2017-12-26Enabled exporting symbols for NetBSD.Sergey Kandaurov1-1/+2
2017-09-27Supported linking with -lrt on BSD systems.Sergey Kandaurov1-2/+2
OpenBSD lacks support of librt.
2017-08-17The new module configuration interface.Igor Sysoev2-5/+5
Configuration and building example: ./configure ./configure python ./configure php ./configure go make all or ./configure make nginext ./configure python make python ./configure php make php ./configure go make go Modules configuration options and building examples: ./configure python --module=python2 --config=python2.7-config make python2 ./configure php --module=php7 --config=php7.0-config --lib-path=/usr/local/php7.0 make php7 ./configure go --go=go1.6 --go-path=${HOME}/go1.6 make go1.6