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:
@@ -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:
|
||||
|
Reference in New Issue
Block a user