From d40471462187cb3a9224a2d1ce96bcd72ec461f2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20R=C4=99korajski?= Date: Tue, 30 Oct 2018 22:05:59 +0100 Subject: [PATCH] - add -Werror=trampoline to prevent GCC from generating code that require executable stack --- macros.pld.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/macros.pld.in b/macros.pld.in index 326b00b..81a08b2 100644 --- a/macros.pld.in +++ b/macros.pld.in @@ -179,7 +179,8 @@ pakietu oraz przy odpluskwianiu samego pakietu.\ # cf http://wiki.mandriva.com/en/Development/Packaging/Problems#format_not_a_string_literal_and_no_format_arguments %Werror_cflags -Wformat -Werror=format-security -%_ssp_cflags -fstack-protector-strong --param=ssp-buffer-size=4 +# Use -Werror=trampoline to prevent GCC from generating code that require executable stack +%_ssp_cflags -fstack-protector-strong --param=ssp-buffer-size=4 -Werror=trampoline %__common_cflags -O2 -fwrapv -pipe %{Werror_cflags} %{debuginfocflags} %{?_fortify_cflags} %{!?nospecflags:%{?specflags}} %__common_cflags_with_ssp %{__common_cflags} %{?_ssp_cflags} -- 2.43.0