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>
This commit is contained in:
parent
bdb7991db3
commit
88c0276358
|
@ -9,6 +9,7 @@
|
||||||
include $(top_srcdir)/Makefile.am.common
|
include $(top_srcdir)/Makefile.am.common
|
||||||
|
|
||||||
cygserver_flags=$(cxxflags_common) -Wimplicit-fallthrough=5 -Werror -DSYSCONFDIR="\"$(sysconfdir)\""
|
cygserver_flags=$(cxxflags_common) -Wimplicit-fallthrough=5 -Werror -DSYSCONFDIR="\"$(sysconfdir)\""
|
||||||
|
AM_CXXFLAGS = $(CFLAGS)
|
||||||
|
|
||||||
noinst_LIBRARIES = libcygserver.a
|
noinst_LIBRARIES = libcygserver.a
|
||||||
sbin_PROGRAMS = cygserver
|
sbin_PROGRAMS = cygserver
|
||||||
|
|
|
@ -531,6 +531,7 @@ endif
|
||||||
|
|
||||||
override CFLAGS += $($(*F)_CFLAGS)
|
override CFLAGS += $($(*F)_CFLAGS)
|
||||||
override CXXFLAGS += $($(*F)_CFLAGS)
|
override CXXFLAGS += $($(*F)_CFLAGS)
|
||||||
|
AM_CXXFLAGS += $(CFLAGS)
|
||||||
|
|
||||||
localtime_wrapper_CFLAGS=-I$(srcdir)/tzcode -fwrapv
|
localtime_wrapper_CFLAGS=-I$(srcdir)/tzcode -fwrapv
|
||||||
|
|
||||||
|
|
|
@ -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
|
CFLAGS_COMMON=-Wimplicit-fallthrough=4 -Werror -D_WIN32_WINNT=0x0a00 -DNTDDI_VERSION=WDK_NTDDI_VERSION
|
||||||
AM_CFLAGS=$(cflags_common) $(CFLAGS_COMMON)
|
AM_CFLAGS=$(cflags_common) $(CFLAGS_COMMON)
|
||||||
AM_CXXFLAGS=$(cxxflags_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
|
# Note that we call ps cygps here, so as not to collide with the
|
||||||
# autogenerated texinfo rule with the name 'ps'...
|
# autogenerated texinfo rule with the name 'ps'...
|
||||||
|
|
Loading…
Reference in New Issue