Make w3seek happy. Setting OPTIMIZE=yes as en enviro-var (do NOT add to config) will force optimizations for debug builds too (not recommended). Previous commit was a mistake.

svn path=/trunk/; revision=14371
This commit is contained in:
Alex Ionescu 2005-03-28 18:37:39 +00:00
parent a57d7a6f93
commit 9b5646acd0

View file

@ -644,7 +644,7 @@ endif
endif
#
# Enable Tree-Wide Optimization.
# Enable Tree-Wide Optimization if Debug is on.
# Protect uncompatible files here with an ifneq
# if needed, until their problems can be found
#
@ -653,6 +653,17 @@ ifneq ($(DBG),1)
MK_CPPFLAGS += -O2 -Wno-strict-aliasing
endif
#
# Force Optimization for w3seek
#
ifeq ($(OPTIMIZE),yes)
# Don't double it
ifneq ($(DBG),0)
MK_CFLAGS += -O2 -Wno-strict-aliasing
MK_CPPFLAGS += -O2 -Wno-strict-aliasing
endif
endif
ifneq ($(TARGET_LIBS),)
MK_LIBS := $(TARGET_LIBS) $(MK_LIBS)
endif