RHEL8.4: make mcinspect and eclair fPIE for RPM, clear build_ldflags in mckernel.spec

Change-Id: I06f09628629c2afb0d36ad6ab2e2ed2cc716a980
This commit is contained in:
Balazs Gerofi
2021-06-14 06:04:30 -04:00
parent 69187ea0fd
commit a1b9721772
2 changed files with 6 additions and 0 deletions

View File

@@ -71,6 +71,8 @@ This package contains headers and libraries required for build apps using IHK/Mc
# We need to remove ld flags like relro for the final mckernel.img link, as well as remove cflags for mckernel
# ideally mckernel should use different environment variables for the user tools and the kernel tools altogether...
%undefine _hardened_build
%define build_ldflags ""
%define __global_ldflags ""
%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -grecord-gcc-switches -mtune=generic