diff --git a/bin/aecho/meson.build b/bin/aecho/meson.build index 93fd642819..42dbc694db 100644 --- a/bin/aecho/meson.build +++ b/bin/aecho/meson.build @@ -1,19 +1,9 @@ -if enable_rpath - executable( - 'aecho', - 'aecho.c', - include_directories: root_includes, - link_with: libatalk, - install: true, - build_rpath: libdir, - install_rpath: libdir, - ) -else - executable( - 'aecho', - 'aecho.c', - include_directories: root_includes, - link_with: libatalk, - install: true, - ) -endif +executable( + 'aecho', + 'aecho.c', + include_directories: root_includes, + link_with: libatalk, + install: true, + build_rpath: libdir, + install_rpath: libdir, +) diff --git a/bin/getzones/meson.build b/bin/getzones/meson.build index 1a301c5d50..a85610b6cd 100644 --- a/bin/getzones/meson.build +++ b/bin/getzones/meson.build @@ -1,19 +1,9 @@ -if enable_rpath - executable( - 'getzones', - 'getzones.c', - include_directories: root_includes, - link_with: libatalk, - install: true, - build_rpath: libdir, - install_rpath: libdir, - ) -else - executable( - 'getzones', - 'getzones.c', - include_directories: root_includes, - link_with: libatalk, - install: true, - ) -endif +executable( + 'getzones', + 'getzones.c', + include_directories: root_includes, + link_with: libatalk, + install: true, + build_rpath: libdir, + install_rpath: libdir, +) diff --git a/bin/nbp/meson.build b/bin/nbp/meson.build index ddf80bdef4..cbc87a2e2b 100644 --- a/bin/nbp/meson.build +++ b/bin/nbp/meson.build @@ -1,51 +1,27 @@ -if enable_rpath - executable( - 'nbplkup', - 'nbplkup.c', - include_directories: root_includes, - link_with: libatalk, - install: true, - build_rpath: libdir, - install_rpath: libdir, - ) - executable( - 'nbprgstr', - 'nbprgstr.c', - include_directories: root_includes, - link_with: libatalk, - install: true, - build_rpath: libdir, - install_rpath: libdir, - ) - executable( - 'nbpunrgstr', - 'nbpunrgstr.c', - include_directories: root_includes, - link_with: libatalk, - install: true, - build_rpath: libdir, - install_rpath: libdir, - ) -else - executable( - 'nbplkup', - 'nbplkup.c', - include_directories: root_includes, - link_with: libatalk, - install: true, - ) - executable( - 'nbprgstr', - 'nbprgstr.c', - include_directories: root_includes, - link_with: libatalk, - install: true, - ) - executable( - 'nbpunrgstr', - 'nbpunrgstr.c', - include_directories: root_includes, - link_with: libatalk, - install: true, - ) -endif +executable( + 'nbplkup', + 'nbplkup.c', + include_directories: root_includes, + link_with: libatalk, + install: true, + build_rpath: libdir, + install_rpath: libdir, +) +executable( + 'nbprgstr', + 'nbprgstr.c', + include_directories: root_includes, + link_with: libatalk, + install: true, + build_rpath: libdir, + install_rpath: libdir, +) +executable( + 'nbpunrgstr', + 'nbpunrgstr.c', + include_directories: root_includes, + link_with: libatalk, + install: true, + build_rpath: libdir, + install_rpath: libdir, +) diff --git a/bin/pap/meson.build b/bin/pap/meson.build index d805e8e26e..a76271d317 100644 --- a/bin/pap/meson.build +++ b/bin/pap/meson.build @@ -1,35 +1,18 @@ -if enable_rpath - executable( - 'pap', - 'pap.c', - include_directories: root_includes, - link_with: libatalk, - install: true, - build_rpath: libdir, - install_rpath: libdir, - ) - executable( - 'papstatus', - 'papstatus.c', - include_directories: root_includes, - link_with: libatalk, - install: true, - build_rpath: libdir, - install_rpath: libdir, - ) -else - executable( - 'pap', - 'pap.c', - include_directories: root_includes, - link_with: libatalk, - install: true, - ) - executable( - 'papstatus', - 'papstatus.c', - include_directories: root_includes, - link_with: libatalk, - install: true, - ) -endif +executable( + 'pap', + 'pap.c', + include_directories: root_includes, + link_with: libatalk, + install: true, + build_rpath: libdir, + install_rpath: libdir, +) +executable( + 'papstatus', + 'papstatus.c', + include_directories: root_includes, + link_with: libatalk, + install: true, + build_rpath: libdir, + install_rpath: libdir, +) diff --git a/contrib/a2boot/meson.build b/contrib/a2boot/meson.build index 473cb907ed..7b2c5f2443 100644 --- a/contrib/a2boot/meson.build +++ b/contrib/a2boot/meson.build @@ -8,26 +8,14 @@ a2boot_c_args = [ '-D_PATH_P16_IMAGE="' + pkgconfdir + '/a2boot/ProDOS16 Image"', ] -if enable_rpath - executable( - 'a2boot', - 'a2boot.c', - include_directories: root_includes, - link_with: libatalk, - c_args: a2boot_c_args, - install: true, - install_dir: sbindir, - build_rpath: libdir, - install_rpath: libdir, - ) -else - executable( - 'a2boot', - 'a2boot.c', - include_directories: root_includes, - link_with: libatalk, - c_args: a2boot_c_args, - install: true, - install_dir: sbindir, - ) -endif +executable( + 'a2boot', + 'a2boot.c', + include_directories: root_includes, + link_with: libatalk, + c_args: a2boot_c_args, + install: true, + install_dir: sbindir, + build_rpath: libdir, + install_rpath: libdir, +) diff --git a/contrib/timelord/meson.build b/contrib/timelord/meson.build index ed0627c7aa..45209d680b 100644 --- a/contrib/timelord/meson.build +++ b/contrib/timelord/meson.build @@ -1,21 +1,10 @@ -if enable_rpath - executable( - 'timelord', - 'timelord.c', - include_directories: root_includes, - link_with: libatalk, - install: true, - install_dir: sbindir, - build_rpath: libdir, - install_rpath: libdir, - ) -else - executable( - 'timelord', - 'timelord.c', - include_directories: root_includes, - link_with: libatalk, - install: true, - install_dir: sbindir, - ) -endif +executable( + 'timelord', + 'timelord.c', + include_directories: root_includes, + link_with: libatalk, + install: true, + install_dir: sbindir, + build_rpath: libdir, + install_rpath: libdir, +) diff --git a/meson.build b/meson.build index 737e623aa9..1699a8f3e8 100644 --- a/meson.build +++ b/meson.build @@ -388,16 +388,10 @@ compiler_64_bit_mode = run_command( # Check whether to enable rpath (the default on Solaris and NetBSD) # -if host_os == 'sunos' or host_os == 'netbsd' - enable_rpath = true -else - enable_rpath = get_option('with-rpath') -endif +rpath_libdir = '' -if enable_rpath +if host_os == 'sunos' or host_os == 'netbsd' or get_option('with-rpath') rpath_libdir = libdir -else - rpath_libdir = '' endif # @@ -477,10 +471,6 @@ else endforeach endif -if enable_rpath - bdb_link_args += '-Wl,-rpath,' + bdb_libdir -endif - if bdb_header != '' have_bdb = true bdb_major_version += run_command( @@ -597,9 +587,6 @@ endif if (have_wolfssl or have_embedded_ssl) and nettle.found() have_ssl = true - if enable_rpath - ssl_link_args += ['-Wl,-rpath,' / nettle.get_variable(pkgconfig: 'libdir')] - endif ssl_deps += nettle if have_ssl_override have_wolfssl = false @@ -610,9 +597,6 @@ if (have_wolfssl or have_embedded_ssl) and nettle.found() have_embedded_ssl = false ssl_deps += wolfssl ssl_provider += 'WolfSSL' - if enable_rpath - ssl_link_args += ['-Wl,-rpath,' / wolfssl.get_variable(pkgconfig: 'libdir')] - endif cdata.set('WOLFSSL_DHX', 1) elif have_embedded_ssl have_wolfssl = false @@ -1072,9 +1056,6 @@ libgcrypt_link_args = [] if libgcrypt_path != '' libgcrypt_link_args += ['-L' + libgcrypt_path / 'lib', '-lgcrypt'] - if enable_rpath - libgcrypt_link_args += ['-Wl,-rpath,' + libgcrypt_path / 'lib'] - endif libgcrypt = declare_dependency( link_args: libgcrypt_link_args, include_directories: include_directories(libgcrypt_path / 'include'), @@ -1387,9 +1368,6 @@ ldap_link_args = [] if ldap_path != '' ldap_link_args += ['-L' + ldap_path / 'lib', '-lldap'] - if enable_rpath - ldap_link_args += ['-Wl,-rpath,' + ldap_path / 'lib'] - endif ldap = declare_dependency( link_args: ldap_link_args, include_directories: include_directories(ldap_path / 'include'), @@ -1453,9 +1431,6 @@ libiconv_link_args = [] if iconv_path != '' libiconv_link_args += ['-L' + iconv_path / 'lib', '-liconv'] - if enable_rpath - libiconv_link_args += ['-Wl,-rpath,' + iconv_path / 'lib'] - endif iconv = declare_dependency( link_args: libiconv_link_args, include_directories: include_directories(iconv_path / 'include'), @@ -1691,9 +1666,6 @@ else if pam_path != '' and pam_dir != '/' pam_link_args += ['-L' + pam_path / 'lib', '-lpam'] - if enable_rpath - pam_link_args += ['-Wl,-rpath,' + pam_path / 'lib'] - endif pam = declare_dependency( link_args: pam_link_args, include_directories: include_directories(pam_path / 'include'),