aboutsummaryrefslogtreecommitdiffstats
path: root/make/gcc-linux.mk
diff options
context:
space:
mode:
Diffstat (limited to 'make/gcc-linux.mk')
-rw-r--r--make/gcc-linux.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/make/gcc-linux.mk b/make/gcc-linux.mk
index d34ecf04..490b314c 100644
--- a/make/gcc-linux.mk
+++ b/make/gcc-linux.mk
@@ -22,10 +22,10 @@ endef
# --- Required rule definitions ---
-# 1 2
-# Usage: $(call compile,src,includes)
+# 1 2 3
+# Usage: $(call compile,src,includes,xflags)
define compile
- $(CXX) $(CPPFLAGS) $(CXXFLAGS) \
+ $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(3)\
$(call depflags,$(basename $(call src_to_obj,$(1)))) \
$(foreach I,$(2),-I$(I)) \
-c $(1) -o $(call src_to_obj,$(1))