summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwtc%netscape.com <devnull@localhost>2002-02-27 01:48:41 +0000
committerwtc%netscape.com <devnull@localhost>2002-02-27 01:48:41 +0000
commit7c217f7395a72e28007df6c81c53180fd90aab17 (patch)
treed7420bd3d574c94bd460873717deb33c92e55b5b
parent5c84b18ad2b409e343e1d469b8b5bffdc3e4fbed (diff)
downloadnss-hg-7c217f7395a72e28007df6c81c53180fd90aab17.tar.gz
Bugzilla bug 127517: Darwin optimized build should use -O2. The patch is
contributed by Brian Ryner <bryner@netscape.com>.
-rw-r--r--security/coreconf/Darwin.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/security/coreconf/Darwin.mk b/security/coreconf/Darwin.mk
index f0cfc7d27..6c2b93c9d 100644
--- a/security/coreconf/Darwin.mk
+++ b/security/coreconf/Darwin.mk
@@ -59,6 +59,10 @@ endif
OS_CFLAGS = $(DSO_CFLAGS) $(OS_REL_CFLAGS) -Wmost -fpascal-strings -traditional-cpp -fno-common -pipe -DDARWIN -DHAVE_STRERROR -DHAVE_BSD_FLOCK
+ifdef BUILD_OPT
+OPTIMIZER = -O2
+endif
+
ARCH = darwin
# May override this with -bundle to create a loadable module.