From d340f1e39977b5933f35239a668ed94e32f5e007 Mon Sep 17 00:00:00 2001 From: "wchang0222%aol.com" Date: Fri, 21 May 2004 21:28:43 +0000 Subject: [PATCH] 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 . r=wtc. sr=darin. git-svn-id: svn://10.0.0.236/trunk@156736 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/nsprpub/configure | 2 +- mozilla/nsprpub/configure.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mozilla/nsprpub/configure b/mozilla/nsprpub/configure index 3ea508e170b..5d9ec29f6f1 100755 --- a/mozilla/nsprpub/configure +++ b/mozilla/nsprpub/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/mozilla/nsprpub/configure.in b/mozilla/nsprpub/configure.in index 3fa563052ae..c6319ea00f9 100644 --- a/mozilla/nsprpub/configure.in +++ b/mozilla/nsprpub/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"