Accepting request 887564 from graphics

Hardening: link as PIE (bsc#1184123). (forwarded request 887317 from wfrisch)

OBS-URL: https://build.opensuse.org/request/show/887564
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libraw?expand=0&rev=59
This commit is contained in:
Dominique Leuenberger 2021-04-24 21:07:04 +00:00 committed by Git OBS Bridge
commit dfba5b09f5
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 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 %build
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects %global _lto_cflags %{_lto_cflags} -ffat-lto-objects
export CXXFLAGS="%{optflags} -fPIC -DUSE_ZLIB" export CXXFLAGS="%{optflags} -fPIC -DUSE_ZLIB"
export LDFLAGS="$LDFLAGS -pie"
%if %{debug_build} %if %{debug_build}
export CXXFLAGS="$CXXFLAGS -O0" export CXXFLAGS="$CXXFLAGS -O0"
%endif %endif