From: Jon Turney Date: Thu, 19 Nov 2020 21:38:47 +0000 (+0000) Subject: Cygwin: Use standard CXXFLAGS when compiling localtime_wrapper.c X-Git-Tag: newlib-4.1.0~30 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=47e698cc04109a188d8bba6be8f7fe2e307410a4;p=newlib-cygwin.git Cygwin: Use standard CXXFLAGS when compiling localtime_wrapper.c This has an separate, explicit compilation rule which omits CXXFLAGS, so expected flags like '-g -O2' aren't being used. --- diff --git a/winsup/cygwin/Makefile.in b/winsup/cygwin/Makefile.in index ccff86eea..b15c746cf 100644 --- a/winsup/cygwin/Makefile.in +++ b/winsup/cygwin/Makefile.in @@ -698,7 +698,7 @@ localtime.patched.c: tzcode/localtime.c tzcode/localtime.c.patch $(srcdir)/tzcode/localtime.c.patch localtime.o: tzcode/localtime_wrapper.c localtime.patched.c - $(CC) ${COMMON_CFLAGS} ${localtime_CFLAGS} \ + $(CC) $(CXXFLAGS) ${COMMON_CFLAGS} ${localtime_CFLAGS} \ -I$(target_builddir)/winsup/cygwin \ -I$(srcdir) -I$(srcdir)/tzcode -c -o $@ $<