replace hardening build flags with _hardened_build
This commit is contained in:
parent
d676ac817c
commit
6a17fe9730
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user