From 835c323dc28f0030f6b8edf8af5670e2e02031a6ea13ab5b78d3ded392e0bb30 Mon Sep 17 00:00:00 2001 From: Petr Gajdos Date: Thu, 22 Apr 2021 12:27:22 +0000 Subject: [PATCH] Accepting request 887317 from home:wfrisch:branches:graphics Hardening: link as PIE (bsc#1184123). OBS-URL: https://build.opensuse.org/request/show/887317 OBS-URL: https://build.opensuse.org/package/show/graphics/libraw?expand=0&rev=145 --- libraw.changes | 5 +++++ libraw.spec | 1 + 2 files changed, 6 insertions(+) diff --git a/libraw.changes b/libraw.changes index 4f208bd..cc667c6 100644 --- a/libraw.changes +++ b/libraw.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Apr 21 13:31:51 UTC 2021 - Wolfgang Frisch + +- Hardening: link as PIE (bsc#1184123). + ------------------------------------------------------------------- Fri Feb 19 07:41:27 UTC 2021 - pgajdos@suse.com diff --git a/libraw.spec b/libraw.spec index 13eee15..42c1232 100644 --- a/libraw.spec +++ b/libraw.spec @@ -105,6 +105,7 @@ against LibRaw. LibRaw does not provide dynamic libraries. %build %global _lto_cflags %{_lto_cflags} -ffat-lto-objects export CXXFLAGS="%{optflags} -fPIC -DUSE_ZLIB" +export LDFLAGS="$LDFLAGS -pie" %if %{debug_build} export CXXFLAGS="$CXXFLAGS -O0" %endif