]> git.proxmox.com Git - mirror_edk2.git/commitdiff
CorebootPayloadPkg: Remove improper build flags in DSC file
authorMaurice Ma <maurice.ma@intel.com>
Tue, 10 Jan 2017 03:31:29 +0000 (19:31 -0800)
committerMaurice Ma <maurice.ma@intel.com>
Tue, 10 Jan 2017 23:45:09 +0000 (15:45 -0800)
Current CorebootPayloadPkgIa32X64.dsc contains "-flto" flag to
request GCC link time optimization. However, this feature is
only supported by newer GCC compiler, and it will break the
debug build with GCC4.8. To fix it, the extra compiling flags
are removed. It allows the default build flags set by the EDKII
build environment to be used.

With this fix, CorebootPayloadPkg 64bit debug build can pass
using GCC 4.8.

Cc: Prince Agyeman <prince.agyeman@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Maurice Ma <maurice.ma@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
CorebootPayloadPkg/CorebootPayloadPkgIa32X64.dsc

index c35f261d67beadce105ca2606efd2782546240ad..6b16af63ba8945fbbf3389f6eec9eccff82e6f02 100644 (file)
@@ -89,8 +89,6 @@
 \r
 [BuildOptions]\r
   *_*_*_CC_FLAGS                 = -D DISABLE_NEW_DEPRECATED_INTERFACES\r
 \r
 [BuildOptions]\r
   *_*_*_CC_FLAGS                 = -D DISABLE_NEW_DEPRECATED_INTERFACES\r
-  GCC:DEBUG_*_*_CC_FLAGS         = -Og -flto\r
-  GCC:DEBUG_*_*_DLINK_FLAGS      = -flto\r
   GCC:*_UNIXGCC_*_CC_FLAGS       = -DMDEPKG_NDEBUG\r
   GCC:RELEASE_*_*_CC_FLAGS       = -DMDEPKG_NDEBUG\r
   INTEL:RELEASE_*_*_CC_FLAGS     = /D MDEPKG_NDEBUG\r
   GCC:*_UNIXGCC_*_CC_FLAGS       = -DMDEPKG_NDEBUG\r
   GCC:RELEASE_*_*_CC_FLAGS       = -DMDEPKG_NDEBUG\r
   INTEL:RELEASE_*_*_CC_FLAGS     = /D MDEPKG_NDEBUG\r