mirror of
https://github.com/postgres/postgres.git
synced 2025-10-04 00:02:26 -04:00
oauth: Explicitly depend on -pthread
Followup to 4e1e41733 and 52ecd05ae. oauth-utils.c uses pthread_sigmask(), requiring -pthread on Debian bullseye at minimum. Reported-by: Christoph Berg <myon@debian.org> Tested-by: Christoph Berg <myon@debian.org> Discussion: https://postgr.es/m/aK4PZgC0wuwQ5xSK%40msg.df7cb.de Backpatch-through: 18
This commit is contained in:
parent
e567e22290
commit
85b380162c
@ -3287,6 +3287,7 @@ libpq_deps += [
|
||||
]
|
||||
|
||||
libpq_oauth_deps += [
|
||||
thread_dep,
|
||||
libcurl,
|
||||
]
|
||||
|
||||
|
@ -25,6 +25,7 @@ override shlib := lib$(NAME)$(DLSUFFIX)
|
||||
override stlib := libpq-oauth.a
|
||||
|
||||
override CPPFLAGS := -I$(libpq_srcdir) -I$(top_builddir)/src/port $(CPPFLAGS) $(LIBCURL_CPPFLAGS)
|
||||
override CFLAGS += $(PTHREAD_CFLAGS)
|
||||
|
||||
OBJS = \
|
||||
$(WIN32RES)
|
||||
@ -47,7 +48,7 @@ $(stlib): override OBJS += $(OBJS_STATIC)
|
||||
$(stlib): $(OBJS_STATIC)
|
||||
|
||||
SHLIB_LINK_INTERNAL = $(libpq_pgport_shlib)
|
||||
SHLIB_LINK = $(LIBCURL_LDFLAGS) $(LIBCURL_LDLIBS) $(filter -lintl -lm, $(LIBS))
|
||||
SHLIB_LINK = $(LIBCURL_LDFLAGS) $(LIBCURL_LDLIBS) $(filter -lintl -lm $(PTHREAD_LIBS), $(LIBS))
|
||||
SHLIB_PREREQS = submake-libpq
|
||||
SHLIB_EXPORTS = exports.txt
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user