public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH 1/1] BaseTools:Fix CLANGPDB build error in StandaloneMmCoreEntryPoint
@ 2021-04-27  7:52 Steven Shi
  0 siblings, 0 replies; only message in thread
From: Steven Shi @ 2021-04-27  7:52 UTC (permalink / raw)
  To: devel; +Cc: bob.c.feng, gaoliming, Steven Shi

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.shi@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


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-04-27  7:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-04-27  7:52 [PATCH 1/1] BaseTools:Fix CLANGPDB build error in StandaloneMmCoreEntryPoint Steven Shi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox