Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite76738e

Browse files
committed
oauth: Always link with -lm for floor()
libpq-oauth uses floor() but did not link against libm. Since libpqitself uses -lm, nothing in the buildfarm has had problems withlibpq-oauth yet, and it seems difficult to hit a failure in practice.But commit1443b6c attempted to add an executable based onlibpq-oauth, which ran into link-time failures with Clang due to thisomission. It seems prudent to fix this for both the module and theexecutable simultaneously so that no one trips over it in the future.This is a Makefile-only change. The Meson side already pulls in libm,through the os_deps dependency.Discussion:https://postgr.es/m/CAOYmi%2Bn6ORcmV10k%2BdAs%2Bp0b9QJ4bfpk0WuHQaF5ODXxM8Y36A%40mail.gmail.comBackpatch-through: 18
1 parentc6dca7c commite76738e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/interfaces/libpq-oauth/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ $(stlib): override OBJS += $(OBJS_STATIC)
4747
$(stlib):$(OBJS_STATIC)
4848

4949
SHLIB_LINK_INTERNAL =$(libpq_pgport_shlib)
50-
SHLIB_LINK =$(LIBCURL_LDFLAGS)$(LIBCURL_LDLIBS)$(filter -lintl,$(LIBS))
50+
SHLIB_LINK =$(LIBCURL_LDFLAGS)$(LIBCURL_LDLIBS)$(filter -lintl -lm,$(LIBS))
5151
SHLIB_PREREQS = submake-libpq
5252
SHLIB_EXPORTS = exports.txt
5353

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp