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.
This commit is contained in:
wchang0222%aol.com 2004-05-21 21:28:43 +00:00
Родитель daf5d2563b
Коммит 7572cc8684
2 изменённых файлов: 2 добавлений и 2 удалений

2
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"

Просмотреть файл

@ -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"