summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwchang0222%aol.com <devnull@localhost>2004-05-21 21:26:18 +0000
committerwchang0222%aol.com <devnull@localhost>2004-05-21 21:26:18 +0000
commitaa691ce45dc111e5de19aaae11bf2315c8cdc16d (patch)
treefeeeb39b46fd334718d15e246852d514a0fb6805
parent00eab584bc95b3779a8fe3d1efced42269148a23 (diff)
downloadnspr-hg-aa691ce45dc111e5de19aaae11bf2315c8cdc16d.tar.gz
Bugzilla bug 235381: use the -features=tmplife flag for Sun compilers to
enable Standard C++ lifetime of temporary objects. The patch is contributed by Andreas Lange <anlan@ida.liu.se>. r=wtc. sr=darin. Tag: NSPRPUB_PRE_4_2_CLIENT_BRANCH
-rwxr-xr-xconfigure2
-rw-r--r--configure.in2
2 files changed, 2 insertions, 2 deletions
diff --git a/configure b/configure
index 3ea508e1..5d9ec29f 100755
--- a/configure
+++ b/configure
@@ -4583,7 +4583,7 @@ EOF
fi
else
CFLAGS="$CFLAGS -xstrconst"
- CXXFLAGS="$CXXFLAGS -Qoption cg -xstrconst"
+ CXXFLAGS="$CXXFLAGS -Qoption cg -xstrconst -features=tmplife"
if test -z "$MOZ_OPTIMIZE"; then
CFLAGS="$CFLAGS -xs"
CXXFLAGS="$CXXFLAGS -xs"
diff --git a/configure.in b/configure.in
index 3fa56305..c6319ea0 100644
--- a/configure.in
+++ b/configure.in
@@ -1689,7 +1689,7 @@ mips-sony-newsos*)
fi
else
CFLAGS="$CFLAGS -xstrconst"
- CXXFLAGS="$CXXFLAGS -Qoption cg -xstrconst"
+ CXXFLAGS="$CXXFLAGS -Qoption cg -xstrconst -features=tmplife"
if test -z "$MOZ_OPTIMIZE"; then
CFLAGS="$CFLAGS -xs"
CXXFLAGS="$CXXFLAGS -xs"