diff options
author | Damjan Marion <damarion@cisco.com> | 2016-12-19 19:08:11 +0100 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2016-12-20 13:43:21 +0000 |
commit | a1bd0230d2412223141486192ee0d4632bfe8710 (patch) | |
tree | 8e9180b9339f1362881c48e53a77229a8fa068bc /build-root/rpm/vpp.spec | |
parent | fcfb3917f7021567b250dabbcc9e30a1becf6f73 (diff) |
Remove RPATH from binaries before creating .deb and .rpm packages
Change-Id: I684d4eabac03e049524204864c985e14eea8d92e
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'build-root/rpm/vpp.spec')
-rw-r--r-- | build-root/rpm/vpp.spec | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/build-root/rpm/vpp.spec b/build-root/rpm/vpp.spec index 4a3513481b7..ed382349319 100644 --- a/build-root/rpm/vpp.spec +++ b/build-root/rpm/vpp.spec @@ -26,7 +26,7 @@ License: MIT Version: %{_version} Release: %{_release} Requires: vpp-lib = %{_version}-%{_release}, net-tools, pciutils, python -BuildRequires: systemd +BuildRequires: systemd, chrpath Source: %{name}-%{_version}-%{_release}.tar.gz @@ -189,6 +189,11 @@ do install -p -m 644 $file %{buildroot}/usr/share/vpp/api done +# +# remove RPATH from ELF binaries +# +%{_mu_build_dir}/scripts/remove-rpath %{buildroot} + %post sysctl --system %systemd_post vpp.service |