- Fix FTBFS: use gcc -shared instead of ld -shared to compile with

-fstack-protector
This commit is contained in:
Miloš Jakubíček 2009-04-22 20:24:10 +00:00
parent b5acfaad2b
commit e0c34a0d80

View File

@ -1,6 +1,6 @@
Name: libgeotiff
Version: 1.2.5
Release: 3%{?dist}
Release: 4%{?dist}
Summary: GeoTIFF format library
Group: System Environment/Libraries
License: MIT
@ -57,6 +57,9 @@ find . -name ".cvsignore" -exec rm -rf '{}' \;
# disable -g flag removal
sed -i 's| \| sed \"s\/-g \/\/\"||g' configure
# use gcc -shared instead of ld -shared to build with -fstack-protector
sed -i 's|LD_SHARED=@LD_SHARED@|LD_SHARED=@CC@ -shared|' Makefile.in
%configure \
--prefix=%{_prefix} \
--includedir=%{_includedir}/%{name}/ \
@ -130,6 +133,9 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/pkgconfig/%{name}.pc
%changelog
* Wed Apr 22 2009 Milos Jakubicek <xjakub@fi.muni.cz> - 1.2.5-4
- Fix FTBFS: use gcc -shared instead of ld -shared to compile with -fstack-protector
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.5-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild