From 62f3b1f4fed8e5c3466752e7ffa3cdd4f6944dda Mon Sep 17 00:00:00 2001 From: zhanghailiang Date: Tue, 17 Mar 2020 10:12:12 +0800 Subject: [PATCH] spec: pass some options to make command edk2 packages can take EXTRA_OPTFLAGS and EXTRA_LDFLAGS from caller, we pass the default optflags and __global_ldflags to make. Signed-off-by: zhanghailiang --- edk2.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/edk2.spec b/edk2.spec index e4b2b0a..5bffa2a 100644 --- a/edk2.spec +++ b/edk2.spec @@ -74,7 +74,7 @@ tar -xf %{SOURCE1} -C CryptoPkg/Library/OpensslLib/openssl --strip-components=1 NCPUS=`/usr/bin/getconf _NPROCESSORS_ONLN` BUILD_OPTION="-t GCC49 -n $NCPUS -b RELEASE" -make -C BaseTools %{?_smp_mflags} +make -C BaseTools %{?_smp_mflags} EXTRA_OPTFLAGS="%{optflags}" EXTRA_LDFLAGS="%{__global_ldflags}" . ./edksetup.sh %ifarch aarch64 @@ -212,6 +212,7 @@ chmod +x %{buildroot}%{_bindir}/Rsa2048Sha256GenerateKeys %changelog * Tue Mar 17 2020 openEuler Buildteam - 201908-8 - enable multiple threads compiling +- Pass EXTRA_OPTFLAGS and EXTRA_OPTFLAGS options to make command * Sun Mar 15 2020 openEuler Buildteam - 201908-7 - fix missing OVMF.fd in package