diff --git a/opencsd.spec b/opencsd.spec index 14ea1d9..733878a 100644 --- a/opencsd.spec +++ b/opencsd.spec @@ -33,6 +33,7 @@ to develop CoreSight(tm) trace decoders. cd decoder/build/linux export CFLAGS="$RPM_OPT_FLAGS" export CXXFLAGS="$RPM_OPT_FLAGS" +export LDFLAGS="-pie -z now" LIB_PATH=%{_lib} make %{?_smp_mflags} @@ -59,6 +60,10 @@ PREFIX=%{buildroot}%{_prefix} LIB_PATH=%{_lib} make install DISABLE_STATIC=1 DEF #------------------------------------------------------------------------------ %changelog * Tue Dec 14 2021 Michael Petlan - 1.0.0-5 +- Added some linker hardening flags to pass annocheck + Related: rhbz#2031802 + + * Tue Dec 14 2021 Michael Petlan - 1.0.0-5 - Added gating Related: rhbz#2031794