From d7148676863c716320798ede129a3af5d27c8d31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Mon, 10 Apr 2017 12:26:39 -0400 Subject: [PATCH] meson: remove libnss_*.so symlinks after install --- meson.build | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/meson.build b/meson.build index a56476a71d..780c308ca0 100644 --- a/meson.build +++ b/meson.build @@ -1011,6 +1011,12 @@ foreach tuple : [['myhostname', 'HAVE_MYHOSTNAME', []], link_depends : sym, install : true, install_dir : rootlibdir) + + # We cannot use shared_module because it does not support version suffix. + # Unfortunately shared_library insists on creating the symlink… + meson.add_install_script('sh', '-c', + 'rm $DESTDIR@0@/libnss_@1@.so' + .format(rootlibdir, module)) endif endforeach