aboutsummaryrefslogtreecommitdiffstats
path: root/build-root/rpm/vpp.spec
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2016-12-19 19:08:11 +0100
committerDave Barach <openvpp@barachs.net>2016-12-20 13:43:21 +0000
commita1bd0230d2412223141486192ee0d4632bfe8710 (patch)
tree8e9180b9339f1362881c48e53a77229a8fa068bc /build-root/rpm/vpp.spec
parentfcfb3917f7021567b250dabbcc9e30a1becf6f73 (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.spec7
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