Skip to content

Commit 4b4b346

Browse files
committed
meson: portname was set too early
portname is set to host_system, but host_system might still be changed later in the file. As a consequence, platforms where host_system is changed later wouldn't find some of their platform-specific files (driven by portname), and the build would fail. Move the assignment of portname further down after the last change of host_system (but before further overriding assignments to portname). Discussion: https://www.postgresql.org/message-id/flat/CAC7zN94TdsHhY88XkroJzSMx7E%3DBQpV9LKKjNSEnTM04ihoWCA%40mail.gmail.com
1 parent 21ef4d4 commit 4b4b346

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

meson.build

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -159,12 +159,6 @@ cdata.set_quoted('CONFIGURE_ARGS', '')
159159
# Basic platform specific configuration
160160
###############################################################
161161

162-
# meson's system names don't quite map to our "traditional" names. In some
163-
# places we need the "traditional" name, e.g., for mapping
164-
# src/include/port/$os.h to src/include/pg_config_os.h. Define portname for
165-
# that purpose.
166-
portname = host_system
167-
168162
exesuffix = '' # overridden below where necessary
169163
dlsuffix = '.so' # overridden below where necessary
170164
library_path_var = 'LD_LIBRARY_PATH'
@@ -192,6 +186,12 @@ if host_system == 'dragonfly'
192186
host_system = 'netbsd'
193187
endif
194188

189+
# meson's system names don't quite map to our "traditional" names. In some
190+
# places we need the "traditional" name, e.g., for mapping
191+
# src/include/port/$os.h to src/include/pg_config_os.h. Define portname for
192+
# that purpose.
193+
portname = host_system
194+
195195
if host_system == 'aix'
196196
library_path_var = 'LIBPATH'
197197

0 commit comments

Comments
 (0)