meson: remove libnss_*.so symlinks after install
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 10 Apr 2017 16:26:39 +0000 (12:26 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 24 Apr 2017 01:47:27 +0000 (21:47 -0400)
meson.build

index a56476a..780c308 100644 (file)
@@ -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