Link libungif with -z now too

This commit is contained in:
Adam Jackson 2015-08-14 14:40:09 -04:00
parent c63c004224
commit 97e35a0fe0

View File

@ -1,7 +1,7 @@
Summary: Library for manipulating GIF format image files
Name: giflib
Version: 4.1.6
Release: 13%{?dist}
Release: 14%{?dist}
License: MIT
Group: System Environment/Libraries
URL: http://www.sourceforge.net/projects/%{name}/
@ -49,7 +49,7 @@ make %{?_smp_mflags} all
# Handling of libungif compatibility
MAJOR=`echo '%{version}' | sed -e 's/\([0-9]\+\)\..*/\1/'`
%{__cc} $RPM_OPT_FLAGS -shared -Wl,-soname,libungif.so.$MAJOR -Llib/.libs -lgif -o libungif.so.%{version}
%{__cc} $RPM_OPT_FLAGS -Wl,-z,now -shared -Wl,-soname,libungif.so.$MAJOR -Llib/.libs -lgif -o libungif.so.%{version}
%install
make DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p' install
@ -82,6 +82,9 @@ rm -f doc/Makefile*
%{_bindir}/*
%changelog
* Fri Aug 14 2015 Adam Jackson <ajax@redhat.com> 4.1.6-14
- Link libungif with -z now too
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.1.6-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild