diff options
author | Peter Eisentraut | 2023-03-01 06:41:02 +0000 |
---|---|---|
committer | Peter Eisentraut | 2023-03-01 07:05:42 +0000 |
commit | d2f44cc36e60b5490e56fd2aa7d3381764a38d36 (patch) | |
tree | d23cd2a9e644cb70fa69c2428ce2ca5a2d50d796 /meson.build | |
parent | 6da67a0c111a29e876b7172d081c7d152d23ea3d (diff) |
meson: Add equivalent of configure --disable-rpath option
Discussion: https://www.postgresql.org/message-id/flat/33e957e6-4b4e-b0ed-1cc1-6335a24543ff%40enterprisedb.com
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/meson.build b/meson.build index 656777820c8..26be83afb61 100644 --- a/meson.build +++ b/meson.build @@ -2572,7 +2572,6 @@ default_target_args = { default_lib_args = default_target_args + { 'name_prefix': '', - 'install_rpath': ':'.join(lib_install_rpaths), } internal_lib_args = default_lib_args + { @@ -2583,14 +2582,25 @@ internal_lib_args = default_lib_args + { default_mod_args = default_lib_args + { 'name_prefix': '', 'install_dir': dir_lib_pkg, - 'install_rpath': ':'.join(mod_install_rpaths), } default_bin_args = default_target_args + { 'install_dir': dir_bin, - 'install_rpath': ':'.join(bin_install_rpaths), } +if get_option('rpath') + default_lib_args += { + 'install_rpath': ':'.join(lib_install_rpaths), + } + + default_mod_args += { + 'install_rpath': ':'.join(mod_install_rpaths), + } + + default_bin_args += { + 'install_rpath': ':'.join(bin_install_rpaths), + } +endif # Helper for exporting a limited number of symbols |