f5d0e3e896
-Wformat-security and gcc complains about it's exclusion OBS-URL: https://build.opensuse.org/package/show/server:http/uwsgi?expand=0&rev=14
13 lines
536 B
Diff
13 lines
536 B
Diff
--- 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']
|
|
|