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
This commit is contained in:
Petr Gajdos 2021-04-22 12:27:22 +00:00 committed by Git OBS Bridge
parent 0b22c485e7
commit 835c323dc2
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Apr 21 13:31:51 UTC 2021 - Wolfgang Frisch <wolfgang.frisch@suse.com>
- Hardening: link as PIE (bsc#1184123).
-------------------------------------------------------------------
Fri Feb 19 07:41:27 UTC 2021 - pgajdos@suse.com

View File

@ -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