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