From f0621baf94293a599e0d7b2bf3d2902657e14165cb7eef7ce8616318bfb5599b Mon Sep 17 00:00:00 2001 From: Aleksa Sarai Date: Thu, 20 Jun 2019 10:59:54 +0000 Subject: [PATCH] Accepting request 711062 from home:cyphar:lxc Strip internal .so libraries. OBS-URL: https://build.opensuse.org/request/show/711062 OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/lxd?expand=0&rev=21 --- lxd.spec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lxd.spec b/lxd.spec index e7ab74e..799e643 100644 --- a/lxd.spec +++ b/lxd.spec @@ -199,6 +199,9 @@ done # Give our libraries unrecognisable DT_SONAME entries. patchelf --set-soname '._LXD_INTERNAL-libsqlite3.so.0' "$PKGDIR/dist/sqlite/.libs/libsqlite3.so.0" patchelf --set-soname '._LXD_INTERNAL-libdqlite.so.0' "$PKGDIR/dist/dqlite/.libs/libdqlite.so.0" +# Strip debug symbols (we disabled debuginfo so we must do it manually). +strip "$PKGDIR/dist/sqlite/.libs/libsqlite3.so" +strip "$PKGDIR/dist/dqlite/.libs/libdqlite.so" # Switch to absolute DT_NEEDED for the lxd binary. patchelf --remove-rpath bin/lxd