From 8b144a44b684d4bc7dd767da59f5c22ceb4a5cfe Mon Sep 17 00:00:00 2001 From: Sandro Mani Date: Mon, 27 Jul 2020 16:10:52 +0200 Subject: [PATCH] Add -lssp to LDFLAGS --- macros.mingw32 | 2 +- macros.mingw64 | 2 +- mingw-filesystem.spec | 5 ++++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/macros.mingw32 b/macros.mingw32 index b9a635f..49efc47 100644 --- a/macros.mingw32 +++ b/macros.mingw32 @@ -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++ diff --git a/macros.mingw64 b/macros.mingw64 index 9bc2113..8183fb2 100644 --- a/macros.mingw64 +++ b/macros.mingw64 @@ -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++ diff --git a/mingw-filesystem.spec b/mingw-filesystem.spec index 37cba09..dfa0f5e 100644 --- a/mingw-filesystem.spec +++ b/mingw-filesystem.spec @@ -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 - 116-1 +- Add -lssp to LDFLAGS + * Thu Jul 02 2020 Sandro Mani - 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/)