Kaydet (Commit) d38215b9 authored tarafından Lubos Lunak's avatar Lubos Lunak

prevent symbols cflags from overriding debug cflags

The use case here is configuring with --enable-symbols=small (which
enables -g1 for gcc), and then doing 'dmake debug=true', which
enables -g, however the -g1 is later in the command line, so it
takes precedence. And I don't feel like trying to redo the whole
ordering of gcc command lines everywhere, while this looks safe.
üst 1f096cc5
...@@ -1098,9 +1098,12 @@ CDEFS+= -DSUPD=$(UPD) ...@@ -1098,9 +1098,12 @@ CDEFS+= -DSUPD=$(UPD)
# flags to enable build with symbols; required for crashdump feature # flags to enable build with symbols; required for crashdump feature
.IF ("$(ENABLE_CRASHDUMP)"!="" && "$(ENABLE_CRASHDUMP)"!="DUMMY") || "$(ENABLE_SYMBOLS)"!="" .IF ("$(ENABLE_CRASHDUMP)"!="" && "$(ENABLE_CRASHDUMP)"!="DUMMY") || "$(ENABLE_SYMBOLS)"!=""
# if debug is enabled, this may enable less debug info than debug, so rely just on debug
.IF "$(debug)" == ""
CFLAGSENABLESYMBOLS_CC_ONLY*=$(CFLAGSENABLESYMBOLS) CFLAGSENABLESYMBOLS_CC_ONLY*=$(CFLAGSENABLESYMBOLS)
CFLAGSCXX+=$(CFLAGSENABLESYMBOLS) CFLAGSCXX+=$(CFLAGSENABLESYMBOLS)
CFLAGSCC+=$(CFLAGSENABLESYMBOLS_CC_ONLY) CFLAGSCC+=$(CFLAGSENABLESYMBOLS_CC_ONLY)
.ENDIF # "$(DEBUG)" == ""
.ENDIF # ("$(ENABLE_CRASHDUMP)"!="" && "$(ENABLE_CRASHDUMP)"!="DUMMY") || "$(ENABLE_SYMBOLS)"!="" .ENDIF # ("$(ENABLE_CRASHDUMP)"!="" && "$(ENABLE_CRASHDUMP)"!="DUMMY") || "$(ENABLE_SYMBOLS)"!=""
.IF "$(profile)"!="" .IF "$(profile)"!=""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment