diff --git a/linuxptp.spec b/linuxptp.spec index eada77f..ebb45d3 100644 --- a/linuxptp.spec +++ b/linuxptp.spec @@ -1,3 +1,5 @@ +%global _hardened_build 1 + Name: linuxptp Version: 1.4 Release: 1%{?dist} @@ -29,8 +31,8 @@ Supporting legacy APIs and other platforms is not a goal. %build make %{?_smp_mflags} \ - EXTRA_CFLAGS="$RPM_OPT_FLAGS -pie -fpie" \ - EXTRA_LDFLAGS="-Wl,-z,relro,-z,now" + EXTRA_CFLAGS="$RPM_OPT_FLAGS" \ + EXTRA_LDFLAGS="$RPM_LD_FLAGS" %install %makeinstall