mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
aio: Add liburing dependency
Will be used in a subsequent commit, to implement io_method=io_uring. Kept separate for easier review. Reviewed-by: Noah Misch <noah@leadboat.com> Discussion: https://postgr.es/m/uvrtrknj4kdytuboidbhwclo4gxhswwcpgadptsjvjqcluzmah%40brqs62irg4dt
This commit is contained in:
@ -196,6 +196,7 @@ with_gssapi = @with_gssapi@
|
||||
with_krb_srvnam = @with_krb_srvnam@
|
||||
with_ldap = @with_ldap@
|
||||
with_libcurl = @with_libcurl@
|
||||
with_liburing = @with_liburing@
|
||||
with_libxml = @with_libxml@
|
||||
with_libxslt = @with_libxslt@
|
||||
with_llvm = @with_llvm@
|
||||
@ -222,6 +223,9 @@ krb_srvtab = @krb_srvtab@
|
||||
ICU_CFLAGS = @ICU_CFLAGS@
|
||||
ICU_LIBS = @ICU_LIBS@
|
||||
|
||||
LIBURING_CFLAGS = @LIBURING_CFLAGS@
|
||||
LIBURING_LIBS = @LIBURING_LIBS@
|
||||
|
||||
TCLSH = @TCLSH@
|
||||
TCL_LIBS = @TCL_LIBS@
|
||||
TCL_LIB_SPEC = @TCL_LIB_SPEC@
|
||||
@ -246,7 +250,7 @@ CPP = @CPP@
|
||||
CPPFLAGS = @CPPFLAGS@
|
||||
PG_SYSROOT = @PG_SYSROOT@
|
||||
|
||||
override CPPFLAGS := $(ICU_CFLAGS) $(CPPFLAGS)
|
||||
override CPPFLAGS := $(ICU_CFLAGS) $(LIBURING_CFLAGS) $(CPPFLAGS)
|
||||
|
||||
ifdef PGXS
|
||||
override CPPFLAGS := -I$(includedir_server) -I$(includedir_internal) $(CPPFLAGS)
|
||||
|
@ -43,9 +43,10 @@ OBJS = \
|
||||
$(top_builddir)/src/common/libpgcommon_srv.a \
|
||||
$(top_builddir)/src/port/libpgport_srv.a
|
||||
|
||||
# We put libpgport and libpgcommon into OBJS, so remove it from LIBS; also add
|
||||
# libldap and ICU
|
||||
LIBS := $(filter-out -lpgport -lpgcommon, $(LIBS)) $(LDAP_LIBS_BE) $(ICU_LIBS)
|
||||
# We put libpgport and libpgcommon into OBJS, so remove it from LIBS.
|
||||
LIBS := $(filter-out -lpgport -lpgcommon, $(LIBS))
|
||||
# The backend conditionally needs libraries that most executables don't need.
|
||||
LIBS += $(LDAP_LIBS_BE) $(ICU_LIBS) $(LIBURING_LIBS)
|
||||
|
||||
# The backend doesn't need everything that's in LIBS, however
|
||||
LIBS := $(filter-out -lreadline -ledit -ltermcap -lncurses -lcurses, $(LIBS))
|
||||
|
@ -672,6 +672,9 @@
|
||||
/* Define to 1 to build with libcurl support. (--with-libcurl) */
|
||||
#undef USE_LIBCURL
|
||||
|
||||
/* Define to build with io_uring support. (--with-liburing) */
|
||||
#undef USE_LIBURING
|
||||
|
||||
/* Define to 1 to build with XML support. (--with-libxml) */
|
||||
#undef USE_LIBXML
|
||||
|
||||
|
@ -199,6 +199,8 @@ pgxs_empty = [
|
||||
'PTHREAD_CFLAGS', 'PTHREAD_LIBS',
|
||||
|
||||
'ICU_LIBS',
|
||||
|
||||
'LIBURING_CFLAGS', 'LIBURING_LIBS',
|
||||
]
|
||||
|
||||
if host_system == 'windows' and cc.get_argument_syntax() != 'msvc'
|
||||
@ -230,6 +232,7 @@ pgxs_deps = {
|
||||
'icu': icu,
|
||||
'ldap': ldap,
|
||||
'libcurl': libcurl,
|
||||
'liburing': liburing,
|
||||
'libxml': libxml,
|
||||
'libxslt': libxslt,
|
||||
'llvm': llvm,
|
||||
|
Reference in New Issue
Block a user