forked from awslabs/pgbouncer-fast-switchover
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.diff
62 lines (54 loc) · 1.85 KB
/
Makefile.diff
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
56
57
58
59
60
61
62
--- pure/Makefile 2020-08-18 14:26:42.000000000 +0100
+++ new/Makefile 2020-08-18 14:26:49.000000000 +0100
@@ -21,7 +21,11 @@
src/server.c \
src/stats.c \
src/system.c \
+ src/pycall.c \
+ src/route_connection.c \
+ src/rewrite_query.c \
src/takeover.c \
+ src/fastrouter.c \
src/util.c \
src/varcache.c \
src/common/base64.c \
@@ -47,6 +51,10 @@
include/server.h \
include/stats.h \
include/system.h \
+ include/pycall.h \
+ include/route_connection.h \
+ include/rewrite_query.h \
+ include/fastrouter.h \
include/takeover.h \
include/util.h \
include/varcache.h \
@@ -58,19 +66,21 @@
include/common/unicode_norm.h \
include/common/unicode_norm_table.h
-pgbouncer_CPPFLAGS = -Iinclude $(CARES_CFLAGS) $(LIBEVENT_CFLAGS) $(TLS_CPPFLAGS)
+python_CPPFLAGS = -I/usr/include/python2.7 -I/usr/include/python2.7
+pgbouncer_CPPFLAGS = -Iinclude $(CARES_CFLAGS) $(LIBEVENT_CFLAGS) $(TLS_CPPFLAGS) $(python_CPPFLAGS)
# include libusual sources directly
AM_FEATURES = libusual
pgbouncer_EMBED_LIBUSUAL = 1
# docs to install as-is
-dist_doc_DATA = README.md NEWS.md etc/pgbouncer.ini etc/userlist.txt
+dist_doc_DATA = README.md etc/pgbouncer.ini etc/userlist.txt
+
DISTCLEANFILES = config.mak config.status lib/usual/config.h config.log
DIST_SUBDIRS = doc test
-dist_man_MANS = doc/pgbouncer.1 doc/pgbouncer.5
+dist_man_MANS =
# files in tgz
EXTRA_DIST = AUTHORS COPYRIGHT Makefile config.mak.in config.sub config.guess \
@@ -91,8 +101,10 @@
lib/README lib/COPYRIGHT \
lib/find_modules.sh )))
+python_LDFLAGS = -lpthread -ldl -lutil -lm -lpython2.7 -Xlinker -export-dynamic -lpcre2-8
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 :=
#