-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile.diff
More file actions
55 lines (49 loc) · 1.65 KB
/
Makefile.diff
File metadata and controls
55 lines (49 loc) · 1.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
diff --git a/Makefile b/Makefile
index 044e169..c8214d0 100644
--- a/Makefile
+++ b/Makefile
@@ -23,6 +23,9 @@ pgbouncer_SOURCES = \
src/server.c \
src/stats.c \
src/system.c \
+ src/pycall.c \
+ src/route_connection.c \
+ src/rewrite_query.c \
src/takeover.c \
src/util.c \
src/varcache.c \
@@ -53,6 +56,9 @@ pgbouncer_SOURCES = \
include/server.h \
include/stats.h \
include/system.h \
+ include/pycall.h \
+ include/route_connection.h \
+ include/rewrite_query.h \
include/takeover.h \
include/util.h \
include/varcache.h \
@@ -69,7 +75,8 @@ pgbouncer_SOURCES = \
include/common/uthash_lowercase.h
UTHASH = uthash
-pgbouncer_CPPFLAGS = -Iinclude $(CARES_CFLAGS) $(LIBEVENT_CFLAGS) $(TLS_CPPFLAGS)
+python_CPPFLAGS = -I/usr/include/python3.9 -I/usr/include/python3.9
+pgbouncer_CPPFLAGS = -Iinclude $(CARES_CFLAGS) $(LIBEVENT_CFLAGS) $(TLS_CPPFLAGS) $(python_CPPFLAGS)
pgbouncer_CPPFLAGS += -I$(UTHASH)/src
# include libusual sources directly
@@ -82,7 +89,8 @@ dist_doc_DATA = README.md NEWS.md \
etc/pgbouncer.ini \
etc/pgbouncer.service \
etc/pgbouncer.socket \
- etc/userlist.txt
+ etc/userlist.txt \
+ etc/pgbouncer.ini \
DISTCLEANFILES = config.mak config.status lib/usual/config.h config.log
@@ -113,8 +121,9 @@ LIBUSUAL_DIST = $(filter-out %/config.h, $(sort $(wildcard \
UTHASH_DIST = $(UTHASH)/src/uthash.h \
$(UTHASH)/LICENSE
+python_LDFLAGS = -lpthread -ldl -lutil -lm -lpython3.9 -Xlinker -export-dynamic
pgbouncer_LDFLAGS := $(TLS_LDFLAGS)
-pgbouncer_LDADD := $(CARES_LIBS) $(LIBEVENT_LIBS) $(TLS_LIBS) $(LIBS)
+pgbouncer_LDADD := $(CARES_LIBS) $(LIBEVENT_LIBS) $(TLS_LIBS) $(LIBS) $(python_LDFLAGS)
LIBS :=
#