mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Merge pull request #388 from Douglasj/issue168
If global CFLAGS not set use -O2 as a default for submodules
This commit is contained in:
commit
2ce1f30149
1 changed files with 9 additions and 1 deletions
10
Makefile.in
10
Makefile.in
|
@ -92,8 +92,16 @@ endif
|
||||||
rust: $(CFG_RUSTC)
|
rust: $(CFG_RUSTC)
|
||||||
|
|
||||||
define DEF_SUBMODULE_VARS
|
define DEF_SUBMODULE_VARS
|
||||||
|
|
||||||
|
#defaults
|
||||||
DEPS_$(1) =
|
DEPS_$(1) =
|
||||||
CFLAGS_$(1) = $$(CFLAGS)
|
CFLAGS_$(1) = -O2
|
||||||
|
|
||||||
|
#if global cflags set, inherit that
|
||||||
|
ifneq ($$(CFLAGS),)
|
||||||
|
CFLAGS_$(1) = $$(CFLAGS)
|
||||||
|
endif
|
||||||
|
|
||||||
# any "done" dummy files must be named libSOMETHING.dummy.
|
# any "done" dummy files must be named libSOMETHING.dummy.
|
||||||
#
|
#
|
||||||
# We can't auto-compute this, because some modules have lib* prefix in
|
# We can't auto-compute this, because some modules have lib* prefix in
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue