Add -lssp to LDFLAGS
This commit is contained in:
parent
3e5c7d77dd
commit
8b144a44b6
@ -25,7 +25,7 @@
|
||||
|
||||
%mingw32_cflags %{mingw32_cppflags} -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
|
||||
%mingw32_cppflags %{nil}
|
||||
%mingw32_ldflags -fstack-protector
|
||||
%mingw32_ldflags -fstack-protector -lssp
|
||||
|
||||
%mingw32_cc %{mingw32_target}-gcc
|
||||
%mingw32_cxx %{mingw32_target}-g++
|
||||
|
@ -25,7 +25,7 @@
|
||||
|
||||
%mingw64_cflags %{mingw64_cppflags} -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
|
||||
%mingw64_cppflags %{nil}
|
||||
%mingw64_ldflags -fstack-protector
|
||||
%mingw64_ldflags -fstack-protector -lssp
|
||||
|
||||
%mingw64_cc %{mingw64_target}-gcc
|
||||
%mingw64_cxx %{mingw64_target}-g++
|
||||
|
@ -6,7 +6,7 @@
|
||||
%global macrosdir %(d=%{_rpmconfigdir}/macros.d; [ -d $d ] || d=%{_sysconfdir}/rpm; echo $d)
|
||||
|
||||
Name: mingw-filesystem
|
||||
Version: 115
|
||||
Version: 116
|
||||
Release: 1%{?dist}
|
||||
Summary: MinGW cross compiler base filesystem and environment
|
||||
|
||||
@ -317,6 +317,9 @@ install -m 0644 %{SOURCE19} $RPM_BUILD_ROOT%{_datadir}/mingw/
|
||||
|
||||
|
||||
%changelog
|
||||
* Mon Jul 27 2020 Sandro Mani <manisandro@gmail.com> - 116-1
|
||||
- Add -lssp to LDFLAGS
|
||||
|
||||
* Thu Jul 02 2020 Sandro Mani <manisandro@gmail.com> - 115-1
|
||||
- Add -fstack-protector to LDFLAGS (since we carry -D_FORTIFY_SOURCE=2 in cflags, see https://sourceforge.net/p/mingw-w64/bugs/818/)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user