mirror of
https://github.com/gnustep/tools-make.git
synced 2025-04-23 22:33:28 +00:00
Turn on debug=yes by default, and add -O2 to debug=yes compiles
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@23565 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
cf81121ccf
commit
02b0afaa62
2 changed files with 21 additions and 1 deletions
|
@ -1,3 +1,10 @@
|
|||
2006-09-20 Nicola Pero <nicola.pero@meta-innovation.com>
|
||||
|
||||
By default compile everything with debug=yes, which should now
|
||||
result in -g -O2. To disable the -g, please use 'make debug=no'.
|
||||
* common.make (debug): Turn on debug by default.
|
||||
(OPTFLAG): Do not filter out -O% flags.
|
||||
|
||||
2006-09-19 Nicola Pero <nicola.pero@meta-innovation.com>
|
||||
|
||||
* Master/subproject.make (internal-distclean): Do nothing.
|
||||
|
|
15
common.make
15
common.make
|
@ -439,8 +439,21 @@ ifeq ($(profile), yes)
|
|||
endif
|
||||
endif
|
||||
|
||||
# Enable debug by default. This is according to the GNU Coding
|
||||
# Standards.
|
||||
ifneq ($(debug), no)
|
||||
debug = yes
|
||||
endif
|
||||
|
||||
ifeq ($(debug), yes)
|
||||
OPTFLAG := $(filter-out -O%, $(OPTFLAG))
|
||||
|
||||
# We used to filter away -O flags when compiling with debugging
|
||||
# enabled, but it seems that GCC has no special problem in compiling
|
||||
# with -g -O2, indeed it seems that that is the recommended set of
|
||||
# flags! So we keep the following line commented out. :-)
|
||||
|
||||
# OPTFLAG := $(filter-out -O%, $(OPTFLAG))
|
||||
|
||||
ADDITIONAL_FLAGS += -g -Wall -DDEBUG -fno-omit-frame-pointer
|
||||
INTERNAL_JAVACFLAGS += -g -deprecation
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue