oauth: Correct SSL dependency for libpq-oauth.a
authorJacob Champion <[email protected]>
Fri, 2 May 2025 17:45:12 +0000 (10:45 -0700)
committerJacob Champion <[email protected]>
Fri, 2 May 2025 17:45:12 +0000 (10:45 -0700)
libpq-oauth.a includes libpq-int.h, which includes OpenSSL headers. The
Autoconf side picks up the necessary include directories via CPPFLAGS,
but Meson needs the dependency to be made explicit.

Reported-by: Nathan Bossart <[email protected]>
Tested-by: Nathan Bossart <[email protected]>
Tested-by: Tom Lane <[email protected]>
Discussion: https://postgr.es/m/aBTgjDfrdOZmaPgv%40nathan

src/interfaces/libpq-oauth/meson.build

index 9e7301a7f63b132cad92d8da516f0431334a029c..df064c59a4070bf56ee723265fbdaa272ec93d12 100644 (file)
@@ -25,7 +25,11 @@ libpq_oauth_st = static_library('libpq-oauth',
   libpq_oauth_sources,
   include_directories: [libpq_oauth_inc, postgres_inc],
   c_pch: pch_postgres_fe_h,
-  dependencies: [frontend_stlib_code, libpq_oauth_deps],
+  dependencies: [
+    frontend_stlib_code,
+    libpq_oauth_deps,
+    ssl, # libpq-int.h includes OpenSSL headers
+  ],
   kwargs: default_lib_args,
 )