]> sourceware.org Git - newlib-cygwin.git/commitdiff
Cygwin: Use standard CXXFLAGS when compiling localtime_wrapper.c
authorJon Turney <jon.turney@dronecode.org.uk>
Thu, 19 Nov 2020 21:38:47 +0000 (21:38 +0000)
committerJon Turney <jon.turney@dronecode.org.uk>
Wed, 25 Nov 2020 13:34:07 +0000 (13:34 +0000)
This has an separate, explicit compilation rule which omits CXXFLAGS, so
expected flags like '-g -O2' aren't being used.

winsup/cygwin/Makefile.in

index ccff86eea396465bb54c3869cce4f481835dbdb0..b15c746cf22534d27a59d28cc38060801c404cc4 100644 (file)
@@ -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 $@ $<
 
This page took 0.031183 seconds and 5 git commands to generate.