BaseTools GnuMakefile: Update GCC Flags to the specific one with BUILD_ prefix

To avoid the conflict with the default GCC flag name, BUILD_ prefix is added.

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: Yonghong Zhu <yonghong.zhu@intel.com>
Reviewed-by: Giri P Mudusuru <giri.p.mudusuru@intel.com>
This commit is contained in:
Liming Gao
2016-08-22 14:32:23 +08:00
committed by Yonghong Zhu
parent 00588512dc
commit a61331e8b7
3 changed files with 20 additions and 20 deletions

View File

@@ -21,16 +21,16 @@ install: $(MAKEROOT)/libs-$(ARCH) $(LIBRARY)
cp $(LIBRARY) $(MAKEROOT)/libs-$(ARCH)
$(LIBRARY): $(OBJECTS)
$(AR) crs $@ $^
$(BUILD_AR) crs $@ $^
%.o : %.c
$(CC) -c $(CFLAGS) $(CPPFLAGS) $< -o $@
$(BUILD_CC) -c $(BUILD_CFLAGS) $(BUILD_CPPFLAGS) $< -o $@
%.o : %.S
$(AS) -c $(ASFLAGS) $< -o $@
$(BUILD_AS) -c $(BUILD_ASFLAGS) $< -o $@
%.o : %.cpp
$(CXX) -c $(CPPFLAGS) $< -o $@
$(BUILD_CXX) -c $(BUILD_CPPFLAGS) $< -o $@
.PHONY: clean
clean: