lmi-commits
[Top][All Lists]
Advanced

[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)
 
 
################################################################################
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]