mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-20 16:01:10 +08:00
* Makefile.common: Don't drop -gFOO switches when filtering CFLAGS
and CXXFLAGS.
This commit is contained in:
parent
42ce449890
commit
6485b9c274
@ -1,3 +1,8 @@
|
||||
2013-01-22 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* Makefile.common: Don't drop -gFOO switches when filtering CFLAGS
|
||||
and CXXFLAGS.
|
||||
|
||||
2013-11-06 Christopher Faylor <me.cygwin2013@cgf.cx>
|
||||
|
||||
* Makefile.in: Properly cd to directory sans install_ prefix. Report
|
||||
|
@ -19,8 +19,8 @@ endef
|
||||
export PATH:=${winsup_srcdir}:${PATH}
|
||||
|
||||
# Allow CFLAGS=-O,-g to control CXXFLAGS too
|
||||
opt=$(filter -O%,${CFLAGS}) $(filter -g,${CFLAGS})
|
||||
override CXXFLAGS:=${filter-out -g,$(filter-out -O%,${CXXFLAGS})} ${opt}
|
||||
opt=$(filter -O%,${CFLAGS}) $(filter -g%,${CFLAGS})
|
||||
override CXXFLAGS:=${filter-out -g%,$(filter-out -O%,${CXXFLAGS})} ${opt}
|
||||
|
||||
cflags_common:=-Wall -Wstrict-aliasing -Wwrite-strings -fno-common -pipe -fbuiltin -fmessage-length=0
|
||||
COMPILE.cc=c++wrap ${CXXFLAGS} -fno-rtti -fno-exceptions ${cflags_common}
|
||||
|
Loading…
x
Reference in New Issue
Block a user