[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 8c27b10 1/5: Append rather than replace overr
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 8c27b10 1/5: Append rather than replace overriding compiler options |
Date: |
Mon, 28 Aug 2017 09:27:45 -0400 (EDT) |
branch: master
commit 8c27b108eac2d56ed54a7a0fa213dbc6ec4872d9
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Append rather than replace overriding compiler options
---
workhorse.make | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/workhorse.make b/workhorse.make
index 8a32971..de14cd5 100644
--- a/workhorse.make
+++ b/workhorse.make
@@ -348,6 +348,10 @@ physical_closure_files := \
################################################################################
+# Overriding options--simply expanded, and empty by default.
+
+tutelary_flag :=
+
# Warning options for gcc.
c_standard := -std=c99
@@ -482,7 +486,7 @@ endif
# specific compiler option to allow them.
ifeq (6.3.0,$(gcc_version))
- value_cast_test.o: tutelary_flag := -std=gnu++11
+ value_cast_test.o: tutelary_flag += -std=gnu++11
endif
C_WARNINGS = \
@@ -563,7 +567,7 @@ $(my_unoptimizable_files): optimization_flag := -O0
-fno-omit-frame-pointer
# it is too easily overridden by specifying $(CXXFLAGS) on the command
# line. This flag overrides such overrides:
-$(my_unoptimizable_files): tutelary_flag := -O0 -fno-omit-frame-pointer
+$(my_unoptimizable_files): tutelary_flag += -O0 -fno-omit-frame-pointer
################################################################################