public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Steven Shi" <steven.shi@intel.com>
To: devel@edk2.groups.io
Cc: bob.c.feng@intel.com, gaoliming@byosoft.com.cn,
	Steven Shi <steven.shi@intel.com>
Subject: [PATCH 1/1] BaseTools:Fix CLANGPDB build error in StandaloneMmCoreEntryPoint
Date: Tue, 27 Apr 2021 15:52:07 +0800	[thread overview]
Message-ID: <20210427075207.105-1-steven.shi@intel.com> (raw)

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


                 reply	other threads:[~2021-04-27  7:52 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210427075207.105-1-steven.shi@intel.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox