Accepting request 887271 from home:mgerstner:branches:Base:System

- explicitly pass -pie in CFLAGS, since the build system explicitly passes
  -fPIC, which breaks our gcc-PIE profile. This makes all packaged binaries
  PIE-executables (bsc#1184122).

OBS-URL: https://build.opensuse.org/request/show/887271
OBS-URL: https://build.opensuse.org/package/show/Base:System/dtc?expand=0&rev=54
This commit is contained in:
Josef Möllers 2021-04-21 12:31:57 +00:00 committed by Git OBS Bridge
parent 5214a02db7
commit 9f623a527d
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Wed Apr 21 10:28:05 UTC 2021 - Matthias Gerstner <matthias.gerstner@suse.com>
- explicitly pass -pie in CFLAGS, since the build system explicitly passes
-fPIC, which breaks our gcc-PIE profile. This makes all packaged binaries
PIE-executables (bsc#1184122).
-------------------------------------------------------------------
Tue Mar 10 10:03:02 UTC 2020 - Paolo Stivanin <info@paolostivanin.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package dtc
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -73,7 +73,7 @@ Python binding part.
%setup -q
%build
export EXTRA_CFLAGS="%{optflags}"
export EXTRA_CFLAGS="%{optflags} -pie"
%make_build NO_PYTHON=1
cd pylibfdt
python3 setup.py build_ext