Browse Source

Allow debug symbols to be included when compiling from source- http://wiki.nginx.org/Debugging#Core_dump

master
Ari Aosved 9 years ago
parent
commit
5ce9ff0c11
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      nginx/source.sls

+ 4
- 0
nginx/source.sls View File

- cwd: {{ nginx_source }} - cwd: {{ nginx_source }}
- names: - names:
- ( - (
{%- if nginx.get('debug_symbols', false) %}
CFLAGS="-g -O0" ./configure --conf-path={{ conf_dir }}/nginx.conf
{%- else %}
./configure --conf-path={{ conf_dir }}/nginx.conf ./configure --conf-path={{ conf_dir }}/nginx.conf
{%- endif %}
--sbin-path={{ sbin_dir }}/nginx --sbin-path={{ sbin_dir }}/nginx
--user={{ nginx_map.default_user }} --user={{ nginx_map.default_user }}
--group={{ nginx_map.default_group }} --group={{ nginx_map.default_group }}

Loading…
Cancel
Save