summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjulien.pierre.boogz%sun.com <devnull@localhost>2008-04-02 22:54:05 +0000
committerjulien.pierre.boogz%sun.com <devnull@localhost>2008-04-02 22:54:05 +0000
commitc3467653bee999e659099deeaf7b92abff4110a0 (patch)
tree263d4e978ee1524e5dde9f98c8a28566f0ec30e9
parent01e3668bd533c4208d3aa238667f7bfe9b482d29 (diff)
downloadnss-hg-c3467653bee999e659099deeaf7b92abff4110a0.tar.gz
Fix for bug 426429 . Size optimizations for OS/2 in NSS.
-rw-r--r--security/coreconf/OS2.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/security/coreconf/OS2.mk b/security/coreconf/OS2.mk
index 2fb61207b..73c223110 100644
--- a/security/coreconf/OS2.mk
+++ b/security/coreconf/OS2.mk
@@ -100,7 +100,11 @@ endif #NO_SHARED_LIB
OS_CFLAGS = -Wall -W -Wno-unused -Wpointer-arith -Wcast-align -Wno-switch -Zomf -DDEBUG -DTRACING -g
ifdef BUILD_OPT
-OPTIMIZER = -O2 -s
+ifeq (11,$(ALLOW_OPT_CODE_SIZE)$(OPT_CODE_SIZE))
+ OPTIMIZER += -Os -s
+else
+ OPTIMIZER += -O2 -s
+endif
DEFINES += -UDEBUG -U_DEBUG -DNDEBUG
DLLFLAGS = -DLL -OUT:$@ -MAP:$(@:.dll=.map) $(HIGHMEM_LDFLAG)
EXEFLAGS = -PMTYPE:VIO -OUT:$@ -MAP:$(@:.exe=.map) -nologo -NOE $(HIGHMEM_LDFLAG)