hack for adding an empty DEBUG section to the uwsgi core binary

This commit is contained in:
Unbit
2013-11-11 09:04:48 +01:00
parent 20b5b7b0dc
commit 6d5ae96d50
3 changed files with 7 additions and 1 deletions

View File

@@ -9,5 +9,8 @@ clean:
check:
$(PYTHON) uwsgiconfig.py --check
plugin.%:
$(PYTHON) uwsgiconfig.py --plugin plugins/$* $(PROFILE)
%:
$(PYTHON) uwsgiconfig.py --build $@

View File

@@ -1,4 +1,3 @@
[uwsgi]
main_plugin = gccgo
inherit = base
cflags = -g

View File

@@ -325,7 +325,11 @@ def build_uwsgi(uc, print_only=False, gcll=None):
if objfile.endswith('.go'):
cflags.pop()
else:
if objfile == 'core/dot_h':
cflags.append('-g')
compile(' '.join(cflags), last_cflags_ts, objfile + '.o', file + '.c')
if objfile == 'core/dot_h':
cflags.pop()
if uc.get('embedded_plugins'):
ep = uc.get('embedded_plugins').split(',')