--- trunk/reactos/tools/helper.mk 2005-03-28 18:12:31 UTC (rev 14370)
+++ trunk/reactos/tools/helper.mk 2005-03-28 18:37:39 UTC (rev 14371)
@@ -644,7 +644,7 @@
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 @@
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