https://gcc.gnu.org/g:438e82b8aa3cf14e08c70ea8a7f669621a897eae

commit r15-8679-g438e82b8aa3cf14e08c70ea8a7f669621a897eae
Author: Bob Dubner <rdub...@symas.com>
Date:   Fri Mar 21 17:22:31 2025 -0400

    cobol: Make CXXFLAGS_FOR_TARGET available to the libgcobol build.
    
    By setting "CXXFLAGS_FOR_TARGET=-ggdb -O0", a debuggable version
    of libgcobol.so is created.
    
    libgcobol
    
            * Makefile.am: Incorporate AM_CXXFLAGS = $(CXXFLAGS_FOR_TARGET).
            * Makefile.in: Regenerated.

Diff:
---
 libgcobol/Makefile.am | 2 ++
 libgcobol/Makefile.in | 1 +
 2 files changed, 3 insertions(+)

diff --git a/libgcobol/Makefile.am b/libgcobol/Makefile.am
index 888cbf2b0b04..cafb733dde1d 100644
--- a/libgcobol/Makefile.am
+++ b/libgcobol/Makefile.am
@@ -52,6 +52,8 @@ libgcobol_la_LINK = $(LIBTOOL) --mode=link --tag=CXX $(CXX)   
\
 
 WARN_CFLAGS = -W -Wall -Wwrite-strings
 
+AM_CXXFLAGS = $(CXXFLAGS_FOR_TARGET)
+
 # not defined: DEFS, MAX_ERRORS, LTLDFLAGS
 ALL_CXXFLAGS = -I. -I$(srcdir) $(AM_CPPFLAGS) $(DEFS)          \
        $(XCFLAGS) $(AM_CXXFLAGS) $(WARN_CFLAGS) $(MAX_ERRORS)  \
diff --git a/libgcobol/Makefile.in b/libgcobol/Makefile.in
index 1a1e2ee39eb0..c4a562a80585 100644
--- a/libgcobol/Makefile.in
+++ b/libgcobol/Makefile.in
@@ -431,6 +431,7 @@ libgcobol_la_LINK = $(LIBTOOL) --mode=link --tag=CXX $(CXX) 
\
                $(LTLDFLAGS) $(LTLIBICONV)
 
 WARN_CFLAGS = -W -Wall -Wwrite-strings
+AM_CXXFLAGS = $(CXXFLAGS_FOR_TARGET)
 
 # not defined: DEFS, MAX_ERRORS, LTLDFLAGS
 ALL_CXXFLAGS = -I. -I$(srcdir) $(AM_CPPFLAGS) $(DEFS)          \

Reply via email to