forked from awslabs/pgbouncer-fast-switchover
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.diff.original
81 lines (72 loc) · 2.43 KB
/
Makefile.diff.original
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
--- ../pgbouncer/Makefile 2020-04-26 15:20:51.655323355 -0400
+++ ./Makefile 2020-04-26 14:54:45.004586868 -0400
@@ -18,12 +18,15 @@ pgbouncer_SOURCES = \
src/proto.c \
src/sbuf.c \
src/scram.c \
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 \
src/common/base64.c \
src/common/saslprep.c \
src/common/scram-common.c \
@@ -44,36 +47,41 @@ pgbouncer_SOURCES = \
include/proto.h \
include/sbuf.h \
include/scram.h \
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 \
include/common/base64.h \
include/common/pg_wchar.h \
include/common/postgres_compat.h \
include/common/saslprep.h \
include/common/scram-common.h \
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 \
install-sh autogen.sh configure configure.ac \
etc/mkauth.py etc/optscan.sh etc/example.debian.init.sh \
win32/Makefile \
@@ -88,14 +96,16 @@ LIBUSUAL_DIST = $(filter-out %/config.h,
lib/mk/*.mk \
lib/mk/antimake.mk lib/mk/antimake.txt \
lib/mk/install-sh lib/mk/std-autogen.sh \
lib/README lib/COPYRIGHT \
lib/find_modules.sh )))
+python_LDFLAGS = -lpthread -ldl -lutil -lm -lpython2.7 -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 :=
#
# win32
#