REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3358
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 <steven....@intel.com> --- .../StandaloneMmCoreEntryPoint.inf | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/StandaloneMmCoreEntryPoint.inf b/StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/StandaloneMmCoreEntryPoint.inf index 4fa426f58ef4..4ad8c96adb5b 100644 --- a/StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/StandaloneMmCoreEntryPoint.inf +++ b/StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/StandaloneMmCoreEntryPoint.inf @@ -55,4 +55,8 @@ [FeaturePcd.AARCH64] gArmTokenSpaceGuid.PcdFfaEnable [BuildOptions] - GCC:*_*_*_CC_FLAGS = -fpie + GCC:*_GCG48_*_CC_FLAGS = -fpie + GCC:*_GCG49_*_CC_FLAGS = -fpie + GCC:*_GCG5_*_CC_FLAGS = -fpie + GCC:*_CLANG35_*_CC_FLAGS = -fpie + GCC:*_CLANG38_*_CC_FLAGS = -fpie -- 2.28.0.windows.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#74443): https://edk2.groups.io/g/devel/message/74443 Mute This Topic: https://groups.io/mt/82398991/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-