From de7ca1a7f748064bf292a6342175f1a2463754725d77c90405eca8bf98d7d56c Mon Sep 17 00:00:00 2001 From: Steffen Winterfeldt Date: Thu, 16 Nov 2023 14:34:31 +0000 Subject: [PATCH] Accepting request 1089159 from home:msmeissn:branches:system:install:head - Build the system installable binaries with RPM_OPT_FLAGS, to allow utilization of stack-protector and FORTIFY_SOURCE. (bsc#1211640) OBS-URL: https://build.opensuse.org/request/show/1089159 OBS-URL: https://build.opensuse.org/package/show/system:install:head/syslinux?expand=0&rev=107 --- syslinux.changes | 6 ++++++ syslinux.spec | 10 +++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/syslinux.changes b/syslinux.changes index 9fdbd52..2fda345 100644 --- a/syslinux.changes +++ b/syslinux.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri May 26 08:42:21 UTC 2023 - Marcus Meissner + +- Build the system installable binaries with RPM_OPT_FLAGS, to allow + utilization of stack-protector and FORTIFY_SOURCE. (bsc#1211640) + ------------------------------------------------------------------- Wed Jun 9 10:45:24 UTC 2021 - Wolfgang Frisch diff --git a/syslinux.spec b/syslinux.spec index 2d6f80d..99cbcf4 100644 --- a/syslinux.spec +++ b/syslinux.spec @@ -1,7 +1,7 @@ # # spec file for package syslinux # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -112,6 +112,14 @@ Authors: cp %{SOURCE2} . make spotless make +# rebuild the on-system binaries with distribution optflags for stack protector etc. +for dir in extlinux utils linux mtools +do + cd $dir + make clean + make OPTFLAGS="%optflags" + cd .. +done %install make install-all \