From b0dae66264f0861a9fd90cf8b9c243002ee4fc7f Mon Sep 17 00:00:00 2001 From: Roberto De Ioris Date: Thu, 13 Dec 2012 11:07:37 +0100 Subject: [PATCH] applied 0001-allows-embedding-.cc-and-.m-files.patch --- uwsgiconfig.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/uwsgiconfig.py b/uwsgiconfig.py index d8fdea42..e2ca1a95 100644 --- a/uwsgiconfig.py +++ b/uwsgiconfig.py @@ -345,12 +345,16 @@ def build_uwsgi(uc, print_only=False): pass for cfile in up.GCC_LIST: - if not cfile.endswith('.a'): + if cfile.endswith('.a'): + gcc_list.append(cfile) + elif not cfile.endswith('.c') and not cfile.endswith('.cc') and not cfile.endswith('.m'): compile(' '.join(uniq_warnings(p_cflags)), last_cflags_ts, path + '/' + cfile + '.o', path + '/' + cfile + '.c') gcc_list.append('%s/%s' % (path, cfile)) else: - gcc_list.append(cfile) + compile(' '.join(uniq_warnings(p_cflags)), last_cflags_ts, + path + '/' + cfile + '.o', path + '/' + cfile) + gcc_list.append('%s/%s' % (path, cfile)) libs += up.LIBS