From 9f623a527d958f92f7a933e62098b66c64516a9195cffd3d7cbeb90509db3963 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josef=20M=C3=B6llers?= Date: Wed, 21 Apr 2021 12:31:57 +0000 Subject: [PATCH] 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 --- dtc.changes | 7 +++++++ dtc.spec | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/dtc.changes b/dtc.changes index bfd280d..9f1a83e 100644 --- a/dtc.changes +++ b/dtc.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Wed Apr 21 10:28:05 UTC 2021 - Matthias Gerstner + +- 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 diff --git a/dtc.spec b/dtc.spec index 0d239ec..6712c4e 100644 --- a/dtc.spec +++ b/dtc.spec @@ -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