From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mx.groups.io with SMTP id smtpd.web10.5281.1619509946510741830 for ; Tue, 27 Apr 2021 00:52:28 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 192.55.52.151, mailfrom: steven.shi@intel.com) IronPort-SDR: IHLJI6ou0PSGxWSU/XO1HFZU0iLePmZxsv8p84FonrnhiTlJPKH0pNkCPs+9eVZRBfY5YvGYIC 4wzKz1zvzynA== X-IronPort-AV: E=McAfee;i="6200,9189,9966"; a="176583532" X-IronPort-AV: E=Sophos;i="5.82,254,1613462400"; d="scan'208";a="176583532" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Apr 2021 00:52:25 -0700 IronPort-SDR: t4P5gbpwkXPQn5NSXAdEd1Miy4GUlsnAAok+OFGg8tscCWDxDF4G226VIBOc7gUEHhRcNpy1rG ewkIXa/TlgGw== X-IronPort-AV: E=Sophos;i="5.82,254,1613462400"; d="scan'208";a="429716856" Received: from jshi19-mobl1.ccr.corp.intel.com ([10.254.208.155]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Apr 2021 00:52:22 -0700 From: "Steven Shi" To: devel@edk2.groups.io Cc: bob.c.feng@intel.com, gaoliming@byosoft.com.cn, Steven Shi Subject: [PATCH 1/1] BaseTools:Fix CLANGPDB build error in StandaloneMmCoreEntryPoint Date: Tue, 27 Apr 2021 15:52:07 +0800 Message-Id: <20210427075207.105-1-steven.shi@intel.com> X-Mailer: git-send-email 2.28.0.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D3358 CLANGPDB build fails in StandaloneMmCoreEntryPoint module with error: unsupported option '-fpie' for target 'x86_64-unknown-windows-gnu'. Enhance the module INF and explicitly define the option '-fpie' in different GCC familiy toolchains except for CLANGPDB. Signed-off-by: Steven Shi --- .../StandaloneMmCoreEntryPoint.inf | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/StandaloneM= mCoreEntryPoint.inf b/StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/St= andaloneMmCoreEntryPoint.inf index 4fa426f58ef4..4ad8c96adb5b 100644 --- a/StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/StandaloneMmCoreEn= tryPoint.inf +++ b/StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/StandaloneMmCoreEn= tryPoint.inf @@ -55,4 +55,8 @@ [FeaturePcd.AARCH64] gArmTokenSpaceGuid.PcdFfaEnable=0D =0D [BuildOptions]=0D - GCC:*_*_*_CC_FLAGS =3D -fpie=0D + GCC:*_GCG48_*_CC_FLAGS =3D -fpie=0D + GCC:*_GCG49_*_CC_FLAGS =3D -fpie=0D + GCC:*_GCG5_*_CC_FLAGS =3D -fpie=0D + GCC:*_CLANG35_*_CC_FLAGS =3D -fpie=0D + GCC:*_CLANG38_*_CC_FLAGS =3D -fpie=0D --=20 2.28.0.windows.1