forked from awslabs/pgbouncer-fast-switchover
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.diff
55 lines (47 loc) · 1.67 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
diff --git a/Makefile b/Makefile
index 2e13d00..cdce15b 100644
--- a/Makefile
+++ b/Makefile
@@ -22,6 +22,9 @@ pgbouncer_SOURCES = \
src/system.c \
src/takeover.c \
src/util.c \
+ src/pycall.c \
+ src/route_connection.c \
+ src/rewrite_query.c \
src/varcache.c \
include/admin.h \
include/bouncer.h \
@@ -42,21 +45,25 @@ pgbouncer_SOURCES = \
include/system.h \
include/takeover.h \
include/util.h \
+ include/pycall.h \
+ include/route_connection.h \
+ include/rewrite_query.h \
include/varcache.h
-pgbouncer_CPPFLAGS = -Iinclude $(CARES_CFLAGS) $(TLS_CPPFLAGS)
+python_CPPFLAGS = -I/usr/include/python2.7 -I/usr/include/python2.7
+pgbouncer_CPPFLAGS = -Iinclude $(CARES_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 \
@@ -78,8 +85,9 @@ LIBUSUAL_DIST = $(filter-out %/config.h, $(sort $(wildcard \
lib/README lib/COPYRIGHT \
lib/find_modules.sh )))
-pgbouncer_LDFLAGS := $(TLS_LDFLAGS)
-pgbouncer_LDADD := $(CARES_LIBS) $(TLS_LIBS) $(LIBS)
+python_LDFLAGS = -lpthread -ldl -lutil -lm -lpython2.7 -Xlinker -export-dynamic
+pgbouncer_LDFLAGS := $(TLS_LDFLAGS)
+pgbouncer_LDADD := $(CARES_LIBS) $(TLS_LIBS) $(LIBS) $(python_LDFLAGS)
LIBS :=
#