add packaging
[platform/upstream/nss.git] / packaging / nss-opt.patch
1 Index: security/coreconf/Linux.mk
2 ===================================================================
3 RCS file: /cvsroot/mozilla/security/coreconf/Linux.mk,v
4 retrieving revision 1.45.2.1
5 diff -u -r1.45.2.1 Linux.mk
6 --- security/coreconf/Linux.mk  31 Jul 2010 04:23:37 -0000      1.45.2.1
7 +++ security/coreconf/Linux.mk  5 Aug 2010 07:35:06 -0000
8 @@ -112,11 +112,7 @@
9  endif
10
11  ifdef BUILD_OPT
12 -ifeq (11,$(ALLOW_OPT_CODE_SIZE)$(OPT_CODE_SIZE))
13 -       OPTIMIZER = -Os
14 -else
15 -       OPTIMIZER = -O2
16 -endif
17 +       OPTIMIZER = $(OPT_FLAGS)
18  ifdef MOZ_DEBUG_SYMBOLS
19         ifdef MOZ_DEBUG_FLAGS
20                 OPTIMIZER += $(MOZ_DEBUG_FLAGS)