uwsgi/uwsgi-2.0.18-postgresql-config.patch
Dominique Leuenberger 24b0e5ce6b - Added a backport of uwsgi-93d07ec38b31.patch to fix a type
incompatibility problem to enable build with GCC 14.

If the request is OK, please forward it to Factory soon too so that we
can switch the default compiler.  Thanks!

OBS-URL: https://build.opensuse.org/package/show/server:http/uwsgi?expand=0&rev=129
2024-08-16 12:10:59 +00:00

17 lines
470 B
Diff

--- a/plugins/emperor_pg/uwsgiplugin.py
+++ b/plugins/emperor_pg/uwsgiplugin.py
@@ -2,11 +2,8 @@ import os
NAME = 'emperor_pg'
-CFLAGS = ['-I' + os.popen('pg_config --includedir').read().rstrip()]
+CFLAGS = os.popen('pkg-config --cflags libpq').read().rstrip().split()
LDFLAGS = []
-LIBS = [
- '-L' + os.popen('pg_config --libdir').read().rstrip(),
- '-lpq'
-]
+LIBS = os.popen('pkg-config --libs libpq').read().rstrip().split()
GCC_LIST = ['emperor_pg']