From a4a624e4c5f16ad75ab9124e390f82efaca06512 Mon Sep 17 00:00:00 2001 From: Jeff Morriss Date: Tue, 1 Jul 2014 18:28:26 -0400 Subject: Get rid of rpath when we're building RPMs. Fedora prohibits it, we don't need it, and it gets in the way some times. Change-Id: I92cee959f471866ff90efe9f96e4fa519c357dd9 Reviewed-on: https://code.wireshark.org/review/2763 Reviewed-by: Jeff Morriss --- packaging/rpm/SPECS/wireshark.spec.in | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'packaging/rpm') diff --git a/packaging/rpm/SPECS/wireshark.spec.in b/packaging/rpm/SPECS/wireshark.spec.in index ae233ec505..ad180e290f 100644 --- a/packaging/rpm/SPECS/wireshark.spec.in +++ b/packaging/rpm/SPECS/wireshark.spec.in @@ -210,6 +210,12 @@ Contains the Qt Wireshark GUI and desktop integration files. %{?_with_qt} \ --disable-warnings-as-errors +# Remove rpath. It's prohibited in Fedora[1] and anyway we don't need it (and +# sometimes it gets in the way). +# [1] https://fedoraproject.org/wiki/Packaging:Guidelines#Beware_of_Rpath +sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool +sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool + # Suggestion: put this in your ~/.rpmmacros (without the hash sign, of course): # %_smp_mflags -j %(grep -c processor /proc/cpuinfo) make %{?_smp_mflags} -- cgit v1.2.1