fix problem with builing for debug

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@28699 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2009-09-17 13:53:21 +00:00
parent e76d0784e7
commit bbf8d6432b
2 changed files with 10 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2009-09-17 Richard Frith-Macdonald <rfm@gnu.org>
* common.make: Fix debug build ... somehow filtering out of the -O
flag got lost, preventing effective debugging with gdb when debug=yes
2009-09-17 Nicola Pero <nicola.pero@meta-innovation.com>
* Documentation/releasenotes.texi: Fixed typo in the release notes

View file

@ -645,6 +645,11 @@ ifeq ($(profile), yes)
endif
endif
ifeq ($(debug), yes)
# Optimisation must be removed to permit debugging
OPTFLAG := $(filter-out -O%, $(OPTFLAG))
endif
# Enable debug by default. This is according to the GNU Coding
# Standards.
ifneq ($(debug), no)