diff options
author | Liming Gao <liming.gao@intel.com> | 2016-08-31 12:44:50 +0800 |
---|---|---|
committer | Liming Gao <liming.gao@intel.com> | 2016-09-08 13:04:57 +0800 |
commit | a9355bb81ad43231c978431ecf0abbe5cfb3a1fa (patch) | |
tree | 305be020a589bbc5ebcf15417b4b46c4f06e53c8 /BaseTools | |
parent | ad8a2f5e68fd9850c10740a6ace2ab785cb99818 (diff) | |
download | edk2-a9355bb81ad43231c978431ecf0abbe5cfb3a1fa.zip edk2-a9355bb81ad43231c978431ecf0abbe5cfb3a1fa.tar.gz edk2-a9355bb81ad43231c978431ecf0abbe5cfb3a1fa.tar.bz2 |
BaseTools GNU makefile: Add BUILD_CXXFLAGS to align make built-in rule
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>
Reviewed-by: Giri P Mudusuru <giri.p.mudusuru@intel.com>
Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
Diffstat (limited to 'BaseTools')
-rw-r--r-- | BaseTools/Source/C/Makefiles/footer.makefile | 2 | ||||
-rw-r--r-- | BaseTools/Source/C/Makefiles/header.makefile | 1 |
2 files changed, 2 insertions, 1 deletions
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)
#
|