Build libungif with linker flags from redhat-rpm-config
This commit is contained in:
parent
393fc07217
commit
2dabc51474
@ -1,7 +1,7 @@
|
||||
Summary: Library for manipulating GIF format image files
|
||||
Name: giflib
|
||||
Version: 4.1.6
|
||||
Release: 21%{?dist}
|
||||
Release: 22%{?dist}
|
||||
License: MIT
|
||||
Group: System Environment/Libraries
|
||||
URL: http://www.sourceforge.net/projects/%{name}/
|
||||
@ -54,7 +54,7 @@ make %{?_smp_mflags} all
|
||||
|
||||
# Handling of libungif compatibility
|
||||
MAJOR=`echo '%{version}' | sed -e 's/\([0-9]\+\)\..*/\1/'`
|
||||
%{__cc} $RPM_OPT_FLAGS -Wl,-z,now -shared -Wl,-soname,libungif.so.$MAJOR -Llib/.libs -lgif -o libungif.so.%{version}
|
||||
%{__cc} $RPM_OPT_FLAGS $RPM_LD_FLAGS -shared -Wl,-soname,libungif.so.$MAJOR -Llib/.libs -lgif -o libungif.so.%{version}
|
||||
|
||||
%install
|
||||
make DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p' install
|
||||
@ -85,6 +85,9 @@ rm -f doc/Makefile*
|
||||
%{_bindir}/*
|
||||
|
||||
%changelog
|
||||
* Thu Feb 8 2018 Florian Weimer <fweimer@redhat.com> - 4.1.6-22
|
||||
- Build libungif with linker flags from redhat-rpm-config
|
||||
|
||||
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.6-21
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user