Mercurial > hg > nginx
changeset 4704:642755ee3fab
Added code to look up Google perftools in /opt/local/, for MacPorts.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Tue, 26 Jun 2012 08:15:40 +0000 |
parents | 726346e1ae66 |
children | 9a43b145a8ba |
files | auto/lib/google-perftools/conf |
diffstat | 1 files changed, 16 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/auto/lib/google-perftools/conf +++ b/auto/lib/google-perftools/conf @@ -29,6 +29,22 @@ if [ $ngx_found = no ]; then fi +if [ $ngx_found = no ]; then + + # MacPorts + + ngx_feature="Google perftools in /opt/local/" + + if [ $NGX_RPATH = YES ]; then + ngx_feature_libs="-R/opt/local/lib -L/opt/local/lib -lprofiler" + else + ngx_feature_libs="-L/opt/local/lib -lprofiler" + fi + + . auto/feature +fi + + if [ $ngx_found = yes ]; then CORE_LIBS="$CORE_LIBS $ngx_feature_libs"