diff --git a/plugins/alarm_speech/uwsgiplugin.py b/plugins/alarm_speech/uwsgiplugin.py index fef16eb1..dead5faa 100644 --- a/plugins/alarm_speech/uwsgiplugin.py +++ b/plugins/alarm_speech/uwsgiplugin.py @@ -1,6 +1,15 @@ +import os + NAME='alarm_speech' -CFLAGS = [] +uwsgi_os = os.uname()[0] + LDFLAGS = [] -LIBS = ['-framework appkit'] +if uwsgi_os == "Darwin": + CFLAGS = [] + LIBS = ['-framework appkit'] +else: + CFLAGS = ['-I /usr/include/GNUstep'] + LIBS = [] + GCC_LIST = ['alarm_speech.m'] diff --git a/uwsgiconfig.py b/uwsgiconfig.py index 4bf2c525..2d334c08 100644 --- a/uwsgiconfig.py +++ b/uwsgiconfig.py @@ -585,7 +585,7 @@ class uConf(object): if gcc_major >= 4: self.cflags = self.cflags + [ '-Wextra', '-Wno-unused-parameter', '-Wno-missing-field-initializers' ] if (gcc_major == 4 and gcc_minor >= 8) or gcc_major > 4: - self.cflags.append('-Wno-format') + self.cflags.append('-Wno-format -Wno-format-security') self.ldflags = os.environ.get("LDFLAGS", "").split() self.libs = ['-lpthread', '-lm', '-rdynamic']