remove rpaths from binaries (#495670)
This commit is contained in:
parent
15b1d2a806
commit
a2ccfe2d6c
@ -37,6 +37,7 @@ URL: http://www.gimp.org/
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root-%(%__id_u -n)
|
||||
Obsoletes: gimp-perl < 2:2.0
|
||||
Obsoletes: gimp < 2:2.6.0-3
|
||||
BuildRequires: chrpath
|
||||
BuildRequires: aalib-devel
|
||||
BuildRequires: alsa-lib-devel >= 1.0.0
|
||||
BuildRequires: babl-devel >= 0.0.22
|
||||
@ -235,9 +236,6 @@ LDFLAGS='-pie'
|
||||
--with-gtkhtml2 --with-librsvg --with-poppler --with-gnomevfs --with-alsa \
|
||||
--with-webkit --with-dbus --with-script-fu
|
||||
|
||||
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
|
||||
|
||||
make %{?_smp_mflags}
|
||||
|
||||
# convenience stuff for external plugins (e.g. xsane)
|
||||
@ -249,6 +247,9 @@ rm -rf %{buildroot}
|
||||
# makeinstall macro won't work here - libexec is overriden
|
||||
make DESTDIR=%{buildroot} install
|
||||
|
||||
# remove rpaths
|
||||
find %buildroot -type f -print0 | xargs -0 -L 20 chrpath --delete --keepgoing 2>/dev/null || :
|
||||
|
||||
%ifos linux
|
||||
# remove .la files
|
||||
find %buildroot -name \*.la -exec %__rm -f {} \;
|
||||
@ -475,7 +476,7 @@ fi
|
||||
|
||||
%changelog
|
||||
* Tue Apr 14 2009 Nils Philippsen <nils@redhat.com> - 2:2.6.6-3
|
||||
- build without rpath (#495670)
|
||||
- remove rpaths from binaries (#495670)
|
||||
|
||||
* Mon Mar 30 2009 Nils Philippsen <nils@redhat.com> - 2:2.6.6-2
|
||||
- minimize dialogs with single image window (#492796, backported from trunk,
|
||||
|
Loading…
x
Reference in New Issue
Block a user