Skip to content

Commit

Permalink
CorebootPayloadPkg: Fix GCC build issue on macro definition
Browse files Browse the repository at this point in the history
The previous change to disable deprecated APIs in CorebootPayloadPkg
used "/D" instead of "-D".  It caused Linux GCC build error. Correct
it to use "-D" instead.

Cc: Prince Agyeman <[email protected]>
Cc: Rusty Coleman <[email protected]>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Maurice Ma <[email protected]>
Reviewed-by: Prince Agyeman <[email protected]>
Reviewed-by: Rusty Coleman <[email protected]>
  • Loading branch information
mauricema committed Nov 9, 2016
1 parent c3c9892 commit faabc5d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CorebootPayloadPkg/CorebootPayloadPkgIa32.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
DEFINE SHELL_TYPE = FULL_BIN

[BuildOptions]
*_*_*_CC_FLAGS = /D DISABLE_NEW_DEPRECATED_INTERFACES
*_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES
GCC:*_UNIXGCC_*_CC_FLAGS = -DMDEPKG_NDEBUG
GCC:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG
INTEL:RELEASE_*_*_CC_FLAGS = /D MDEPKG_NDEBUG
Expand Down
2 changes: 1 addition & 1 deletion CorebootPayloadPkg/CorebootPayloadPkgIa32X64.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
DEFINE SHELL_TYPE = FULL_BIN

[BuildOptions]
*_*_*_CC_FLAGS = /D DISABLE_NEW_DEPRECATED_INTERFACES
*_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES
GCC:DEBUG_*_*_CC_FLAGS = -Og -flto
GCC:DEBUG_*_*_DLINK_FLAGS = -flto
GCC:*_UNIXGCC_*_CC_FLAGS = -DMDEPKG_NDEBUG
Expand Down

0 comments on commit faabc5d

Please sign in to comment.