Fix meson warning due to missing declaration of NM
authorMichael Paquier <michael@paquier.xyz>
Tue, 9 Dec 2025 23:10:28 +0000 (08:10 +0900)
committerMichael Paquier <michael@paquier.xyz>
Tue, 9 Dec 2025 23:10:28 +0000 (08:10 +0900)
The warning was showing up in the early stages of the meson build, when
the contents of Makefile.global is generated based on the configuration
of meson for PGXS.

NM is added to pgxs_empty.  This declaration is only used internally for
the libpq sanity check, so there is no point in exposing it in PGXS.

Oversight in 4a8e6f43a6b5.

Reported-by: Peter Eisentraut <peter@eisentraut.org>
Reviewed-by: Nazir Bilal Yavuz <byavuz81@gmail.com>
Discussion: https://postgr.es/m/4423e01f-1e52-4f47-a6ca-05cc8081c888@eisentraut.org

src/makefiles/meson.build

index 0def244c9011d8512d39fd1cf6918cbc20bf9947..c6edf14ec44911ec91fea59765cb3f150b33ecd0 100644 (file)
@@ -154,9 +154,10 @@ pgxs_bins = {
 pgxs_empty = [
   'ICU_CFLAGS', # needs to be added, included by public server headers
 
-  # hard to see why we'd need either?
+  # hard to see why we'd need these ones?
   'ZIC',
   'TCLSH',
+  'NM',
 
   # docs don't seem to be supported by pgxs
   'XMLLINT',