SHA256
1
0
forked from pool/uwsgi
uwsgi/uwsgi-1.9.13-emperor_pg-Wformat.patch

13 lines
536 B
Diff
Raw Normal View History

--- a/plugins/emperor_pg/uwsgiplugin.py
+++ b/plugins/emperor_pg/uwsgiplugin.py
@@ -3,6 +3,9 @@ import os
NAME='emperor_pg'
CFLAGS = os.popen('pg_config --cflags').read().rstrip().split()
CFLAGS.append('-I' + os.popen('pg_config --includedir').read().rstrip())
+# Add -Wformat since gcc complains about it's exclusion when -Wformat-security
+# comes from pg_config
+CFLAGS.append('-Wformat')
LDFLAGS = os.popen('pg_config --ldflags').read().rstrip().split()
LIBS = ['-L' + os.popen('pg_config --libdir').read().rstrip(), '-lpq']