[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master f708d833 12/17: Override flags for product fi
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master f708d833 12/17: Override flags for product files more appropriately |
Date: |
Sat, 2 Jul 2022 21:42:14 -0400 (EDT) |
branch: master
commit f708d833ab26babb795782db83e84a152002c29f
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Override flags for product files more appropriately
Better expressed the original intention, which was simply to use
-fno-var-tracking-assignments (a gcc debug flag), and
-Os (a gcc optimization flag)
for product files--without resorting to the violent and dangerous
$(tutelary_flag).
That intention, however, isn't yet actually realized--see:
https://lists.nongnu.org/archive/html/lmi/2022-07/msg00005.html
---
compiler_gcc.make | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/compiler_gcc.make b/compiler_gcc.make
index 3913376e..976f9d07 100644
--- a/compiler_gcc.make
+++ b/compiler_gcc.make
@@ -158,16 +158,15 @@ endif
product_file_sources := my_db.o my_fund.o my_prod.o my_rnd.o my_tier.o
-product_file_flags := -Os -fno-var-tracking-assignments
-
-$(product_file_sources): optimization_flag += $(product_file_flags)
+$(product_file_sources): debug_flag += -fno-var-tracking-assignments
+$(product_file_sources): optimization_flag += -Os
# $(optimization_flag) is part of the default $(CXXFLAGS), but a
# target-specific assignment there isn't enough, because it is too
# easily overridden by specifying $(CXXFLAGS) on the command line.
# This flag overrides any such override:
-
-$(product_file_sources): tutelary_flag += $(product_file_flags)
+# Suppressed, and soon to be removed:
+#$(product_file_sources): tutelary_flag += $(product_file_flags)
################################################################################
- [lmi-commits] [lmi] master updated (61ff010d -> ec379f81), Greg Chicares, 2022/07/02
- [lmi-commits] [lmi] master 4d58421b 05/17: Increase concinnity, Greg Chicares, 2022/07/02
- [lmi-commits] [lmi] master 8429817f 04/17: Increase concinnity, Greg Chicares, 2022/07/02
- [lmi-commits] [lmi] master 1018709f 07/17: Move a warning option to its proper place, Greg Chicares, 2022/07/02
- [lmi-commits] [lmi] master f708d833 12/17: Override flags for product files more appropriately,
Greg Chicares <=
- [lmi-commits] [lmi] master acfa77b0 08/17: Simplify, Greg Chicares, 2022/07/02
- [lmi-commits] [lmi] master 6896ec57 03/17: Explain uniformly why pointer-{compare, subtract} aren't used, Greg Chicares, 2022/07/02
- [lmi-commits] [lmi] master 05ef210f 01/17: Remove obsolete '.patch' files, Greg Chicares, 2022/07/02
- [lmi-commits] [lmi] master be64abf0 11/17: Establish general compiler flags earlier, Greg Chicares, 2022/07/02
- [lmi-commits] [lmi] master 0e3c2fbb 02/17: Don't let makefiles end in an empty line, Greg Chicares, 2022/07/02
- [lmi-commits] [lmi] master adcaef29 06/17: Establish a framework for clang warnings, Greg Chicares, 2022/07/02
- [lmi-commits] [lmi] master e4abb6e1 14/17: Don't specify nonempty $CFLAGS or $CXXFLAGS, Greg Chicares, 2022/07/02
- [lmi-commits] [lmi] master ec379f81 17/17: Use an updated XRC schema, Greg Chicares, 2022/07/02
- [lmi-commits] [lmi] master 89e37e40 13/17: Resolve a latent makefile issue, Greg Chicares, 2022/07/02
- [lmi-commits] [lmi] master 5971b763 09/17: Use $(tutelary_flag) to work around compiler breakage, Greg Chicares, 2022/07/02