]> git.proxmox.com Git - mirror_edk2.git/commitdiff
BaseTools/footer.makefile: expand BUILD_CFLAGS last for C files too
authorLaszlo Ersek <lersek@redhat.com>
Wed, 25 Jul 2018 20:27:53 +0000 (22:27 +0200)
committerLaszlo Ersek <lersek@redhat.com>
Thu, 16 Aug 2018 18:18:49 +0000 (20:18 +0200)
BUILD_CPPFLAGS should be expanded before BUILD_CFLAGS. (The rule for C++
source files already does this, with BUILD_CPPFLAGS and BUILD_CXXFLAGS.)

This patch doesn't change behavior.

Cc: Liming Gao <liming.gao@intel.com>
Cc: Yonghong Zhu <yonghong.zhu@intel.com>
Ref: https://bugzilla.redhat.com/show_bug.cgi?id=1540244
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
BaseTools/Source/C/Makefiles/footer.makefile

index 0926aa9645479bf8a851e7ced9a267de6eaa9026..5bda9e4e36d543e56937ae5336ad102e4e43b2d7 100644 (file)
@@ -24,7 +24,7 @@ $(LIBRARY): $(OBJECTS)
        $(BUILD_AR) crs $@ $^\r
 \r
 %.o : %.c \r
-       $(BUILD_CC)  -c $(BUILD_CFLAGS) $(BUILD_CPPFLAGS) $< -o $@\r
+       $(BUILD_CC)  -c $(BUILD_CPPFLAGS) $(BUILD_CFLAGS) $< -o $@\r
 \r
 %.o : %.cpp\r
        $(BUILD_CXX) -c $(BUILD_CPPFLAGS) $(BUILD_CXXFLAGS) $< -o $@\r