mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-09-05 21:21:53 +00:00
uwsgiconfig: force no-format-security too
It may happen that a plugin is using -Wformat -Wformat-security so need to remove both otherwise as seen in emperor_pg plugin: cc1: error: -Wformat-security ignored without -Wformat [-Werror=format-security] Based on a debian patch of Janos Guljas.
This commit is contained in:
+1
-1
@@ -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']
|
||||
|
||||
Reference in New Issue
Block a user