From 56a5976923659e23162e7ea35dcc89d88618ba74 Mon Sep 17 00:00:00 2001 From: Andrew Lukoshko Date: Thu, 3 Nov 2022 14:57:27 +0100 Subject: [PATCH] Fix gcc flags --- SPECS/kernel.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SPECS/kernel.spec b/SPECS/kernel.spec index 5c13834..45d80af 100755 --- a/SPECS/kernel.spec +++ b/SPECS/kernel.spec @@ -2157,7 +2157,7 @@ chmod +x tools/perf/check-headers.sh %endif %global tools_make \ - %{make} CFLAGS="${RPM_OPT_FLAGS}" -D_GNU_SOURCE -isystem ${USR_INC}" LDFLAGS="%{__global_ldflags}" %{?make_opts} + %{make} CFLAGS="${RPM_OPT_FLAGS} -D_GNU_SOURCE -isystem ${USR_INC}" LDFLAGS="%{__global_ldflags}" %{?make_opts} %if %{with_tools} export USR_INC=$(pwd)/usr/include @@ -2203,7 +2203,7 @@ if [ -f $DevelDir/vmlinux.h ]; then fi %global bpftool_make \ - %{__make} EXTRA_CFLAGS="${RPM_OPT_FLAGS} -isystem ${USR_INC}"" EXTRA_LDFLAGS="%{__global_ldflags}" DESTDIR=$RPM_BUILD_ROOT %{?make_opts} VMLINUX_H="${RPM_VMLINUX_H}" V=1 + %{__make} EXTRA_CFLAGS="${RPM_OPT_FLAGS} -isystem ${USR_INC}" EXTRA_LDFLAGS="%{__global_ldflags}" DESTDIR=$RPM_BUILD_ROOT %{?make_opts} VMLINUX_H="${RPM_VMLINUX_H}" V=1 %if %{with_bpftool} pushd tools/bpf/bpftool %{bpftool_make}