mirror of
https://github.com/postgres/postgres.git
synced 2025-06-16 06:01:02 +03:00
meson: Add basic PGXS compatibility
Generate a Makefile.global that's complete enough for PGXS to work for some extensions. It is likely that this compatibility layer will not suffice for every extension and not all platforms - we can expand it over time. This allows extensions to use a single buildsystem across all the supported postgres versions. Once all supported PG versions support meson, we can remove the compatibility layer. Reviewed-by: Peter Eisentraut <peter.eisentraut@enterprisedb.com> Discussion: https://postgr.es/m/20221005200710.luvw5evhwf6clig6@awork3.anarazel.de
This commit is contained in:
@ -49,8 +49,14 @@ else
|
||||
var_cxxflags = ''
|
||||
endif
|
||||
var_cppflags = ' '.join(cppflags)
|
||||
var_cflags_sl = '-fPIC' #FIXME
|
||||
var_ldflags = ' '.join(ldflags + get_option('c_link_args'))
|
||||
var_cflags_sl = ' '.join(cc.get_supported_arguments('-fPIC'))
|
||||
# explicitly add -Wl,--as-needed, normally added by meson, but we want it for
|
||||
# PGXS compatibility
|
||||
var_ldflags = ' '.join(
|
||||
ldflags
|
||||
+ cc.get_supported_link_arguments('-Wl,--as-needed')
|
||||
+ get_option('c_link_args')
|
||||
)
|
||||
var_ldflags_sl = ''.join(ldflags_sl)
|
||||
var_ldflags_ex = '' # FIXME
|
||||
# FIXME - some extensions might directly use symbols from one of libs. If
|
||||
|
Reference in New Issue
Block a user