public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: Liming Gao <liming.gao@intel.com>
To: edk2-devel@lists.01.org
Subject: [Patch 1/4] BaseTools GNU makefile: Add BUILD_CXXFLAGS to align make built-in rule
Date: Tue,  6 Sep 2016 11:59:44 +0800	[thread overview]
Message-ID: <1473134387-36776-2-git-send-email-liming.gao@intel.com> (raw)
In-Reply-To: <1473134387-36776-1-git-send-email-liming.gao@intel.com>

GNU make built-in rule to Compiling C++ programs with
‘$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c’.
To align to it, add empty BUILD_CXXFLAGS in cpp rule.

Cc: Giri P Mudusuru <giri.p.mudusuru@intel.com>
Cc: Yonghong Zhu <yonghong.zhu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Liming Gao <liming.gao@intel.com>
---
 BaseTools/Source/C/Makefiles/footer.makefile | 2 +-
 BaseTools/Source/C/Makefiles/header.makefile | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/BaseTools/Source/C/Makefiles/footer.makefile b/BaseTools/Source/C/Makefiles/footer.makefile
index 216ae41..a58bff6 100644
--- a/BaseTools/Source/C/Makefiles/footer.makefile
+++ b/BaseTools/Source/C/Makefiles/footer.makefile
@@ -30,7 +30,7 @@ $(LIBRARY): $(OBJECTS)
 	$(BUILD_AS) -c $(BUILD_ASFLAGS) $< -o $@
 
 %.o : %.cpp
-	$(BUILD_CXX) -c $(BUILD_CPPFLAGS) $< -o $@
+	$(BUILD_CXX) -c $(BUILD_CPPFLAGS) $(BUILD_CXXFLAGS) $< -o $@
 
 .PHONY: clean
 clean:
diff --git a/BaseTools/Source/C/Makefiles/header.makefile b/BaseTools/Source/C/Makefiles/header.makefile
index 5e79f31..f2041f8 100644
--- a/BaseTools/Source/C/Makefiles/header.makefile
+++ b/BaseTools/Source/C/Makefiles/header.makefile
@@ -52,6 +52,7 @@ else
 BUILD_CFLAGS = -MD -fshort-wchar -fno-strict-aliasing -Wall -Werror -Wno-deprecated-declarations -nostdlib -c -g
 endif
 BUILD_LFLAGS =
+BUILD_CXXFLAGS =
 
 ifeq ($(ARCH), IA32)
 #
-- 
2.8.0.windows.1



  reply	other threads:[~2016-09-06  4:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-06  3:59 [Patch 0/4] BaseTools GNU makefile: Update GCC Flags to the specific one with BUILD_ prefix Liming Gao
2016-09-06  3:59 ` Liming Gao [this message]
2016-09-06  3:59 ` [Patch 2/4] BaseTools GNU makefile: remove unused .S rule Liming Gao
2016-09-06  3:59 ` [Patch 3/4] BaseTools VfrCompile GNU makefile: Replace CXX with BUILD_CXX Liming Gao
2016-09-06  3:59 ` [Patch 4/4] BaseTools VfrCompile Pccts: Update GCC Flags to the specific one with BUILD_ prefix Liming Gao
2016-09-06  5:22   ` Mudusuru, Giri P
2016-09-08  4:51 ` [Patch 0/4] BaseTools GNU makefile: " Zhu, Yonghong

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=1473134387-36776-2-git-send-email-liming.gao@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