Permalink
Browse files

Let extra compiler/linker flags be supplied in the environment.

https://bugzilla.mozilla.org/show_bug.cgi?id=850041

Names are formed by inserting `EXTRA_` after the `HOST_` or `TARGET_`.
  • Loading branch information...
jld committed Mar 15, 2013
1 parent 777bee0 commit b16af19280430388a45a919d796b3061f1c96fc2
Showing with 3 additions and 3 deletions.
  1. +3 −3 core/combo/select.mk
View
@@ -46,9 +46,9 @@ $(combo_target)HAVE_STRLCPY := 0
$(combo_target)HAVE_STRLCAT := 0
$(combo_target)HAVE_KERNEL_MODULES := 0
-$(combo_target)GLOBAL_CFLAGS := -fno-exceptions -Wno-multichar
-$(combo_target)RELEASE_CFLAGS := -O2 -g -fno-strict-aliasing
-$(combo_target)GLOBAL_LDFLAGS :=
+$(combo_target)GLOBAL_CFLAGS := -fno-exceptions -Wno-multichar $($(combo_target)EXTRA_GLOBAL_CFLAGS)
+$(combo_target)RELEASE_CFLAGS := -O2 -g -fno-strict-aliasing $($(combo_target)EXTRA_RELEASE_CFLAGS)
+$(combo_target)GLOBAL_LDFLAGS := $($(combo_target)EXTRA_GLOBAL_LDFLAGS)
$(combo_target)GLOBAL_ARFLAGS := crsP
$(combo_target)EXECUTABLE_SUFFIX :=

0 comments on commit b16af19

Please sign in to comment.