Skip to content

Commit 1db6dde

Browse files
authored
Merge pull request saltstack-formulas#82 from devaos/master
Allow debug symbols to be included when compiling from source
2 parents 4204505 + 5ce9ff0 commit 1db6dde

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

nginx/source.sls

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,11 @@ nginx:
170170
- cwd: {{ nginx_source }}
171171
- names:
172172
- (
173+
{%- if nginx.get('debug_symbols', false) %}
174+
CFLAGS="-g -O0" ./configure --conf-path={{ conf_dir }}/nginx.conf
175+
{%- else %}
173176
./configure --conf-path={{ conf_dir }}/nginx.conf
177+
{%- endif %}
174178
--sbin-path={{ sbin_dir }}/nginx
175179
--user={{ nginx_map.default_user }}
176180
--group={{ nginx_map.default_group }}

0 commit comments

Comments
 (0)