public inbox for cygwin-cvs@sourceware.org
help / color / mirror / Atom feed
From: Corinna Vinschen <corinna@sourceware.org>
To: cygwin-cvs@sourceware.org
Subject: [newlib-cygwin] Cygwin: Allow using CFLAGS also for C++ files
Date: Thu, 26 Aug 2021 20:22:17 +0000 (GMT)	[thread overview]
Message-ID: <20210826202217.1100A385842B@sourceware.org> (raw)

https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=88c0276358687b2790f6970674b09ff40d47cd06

commit 88c0276358687b2790f6970674b09ff40d47cd06
Author: Corinna Vinschen <corinna@vinschen.de>
Date:   Thu Aug 26 22:21:21 2021 +0200

    Cygwin: Allow using CFLAGS also for C++ files
    
    This was used before switching to automake to allow easy tweaking
    of optimization and debugging settings from the command line during
    testing.  Reenable.
    
    Signed-off-by: Corinna Vinschen <corinna@vinschen.de>

Diff:
---
 winsup/cygserver/Makefile.am | 1 +
 winsup/cygwin/Makefile.am    | 1 +
 winsup/utils/Makefile.am     | 1 +
 3 files changed, 3 insertions(+)

diff --git a/winsup/cygserver/Makefile.am b/winsup/cygserver/Makefile.am
index d52f93ce0..ec7a62240 100644
--- a/winsup/cygserver/Makefile.am
+++ b/winsup/cygserver/Makefile.am
@@ -9,6 +9,7 @@
 include $(top_srcdir)/Makefile.am.common
 
 cygserver_flags=$(cxxflags_common) -Wimplicit-fallthrough=5 -Werror -DSYSCONFDIR="\"$(sysconfdir)\""
+AM_CXXFLAGS = $(CFLAGS)
 
 noinst_LIBRARIES = libcygserver.a
 sbin_PROGRAMS = cygserver
diff --git a/winsup/cygwin/Makefile.am b/winsup/cygwin/Makefile.am
index 63383a834..f39560863 100644
--- a/winsup/cygwin/Makefile.am
+++ b/winsup/cygwin/Makefile.am
@@ -531,6 +531,7 @@ endif
 
 override CFLAGS += $($(*F)_CFLAGS)
 override CXXFLAGS += $($(*F)_CFLAGS)
+AM_CXXFLAGS += $(CFLAGS)
 
 localtime_wrapper_CFLAGS=-I$(srcdir)/tzcode -fwrapv
 
diff --git a/winsup/utils/Makefile.am b/winsup/utils/Makefile.am
index 135e6143c..e12dfdd00 100644
--- a/winsup/utils/Makefile.am
+++ b/winsup/utils/Makefile.am
@@ -11,6 +11,7 @@ include $(top_srcdir)/Makefile.am.common
 CFLAGS_COMMON=-Wimplicit-fallthrough=4 -Werror -D_WIN32_WINNT=0x0a00 -DNTDDI_VERSION=WDK_NTDDI_VERSION
 AM_CFLAGS=$(cflags_common) $(CFLAGS_COMMON)
 AM_CXXFLAGS=$(cxxflags_common) $(CFLAGS_COMMON)
+AM_CXXFLAGS += $(CFLAGS)
 
 # Note that we call ps cygps here, so as not to collide with the
 # autogenerated texinfo rule with the name 'ps'...


                 reply	other threads:[~2021-08-26 20:22 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210826202217.1100A385842B@sourceware.org \
    --to=corinna@sourceware.org \
    --cc=cygwin-cvs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).