Bug 550154 - PGO build issue on Solaris SPARC; (Bv1-CC) Copy it to comm-central.
authorSerge Gautherie <sgautherie.bz@free.fr>
Sat, 27 Mar 2010 16:48:56 +0100
changeset 5296 a4617f9d05e3c1f95892237630a7d383807266f2
parent 5295 e1441916999b62ecc861f084c3f93309962c8e47
child 5297 78563f185a8ec1c79d0ef22616fff0c8547055fe
push idunknown
push userunknown
push dateunknown
bugs550154
Bug 550154 - PGO build issue on Solaris SPARC; (Bv1-CC) Copy it to comm-central. r=Callek.
configure.in
--- a/configure.in
+++ b/configure.in
@@ -6516,23 +6516,28 @@ if test -n "$INTEL_CC"; then
   PROFILE_USE_CFLAGS="-prof-use -prof-dir ."
   PROFILE_USE_LDFLAGS=
 fi
 
 dnl Sun Studio on Solaris
 if test "$SOLARIS_SUNPRO_CC"; then
   PROFILE_GEN_CFLAGS="-xprofile=collect:$_objdir/$enable_application"
   PROFILE_GEN_LDFLAGS="-xprofile=collect:$_objdir/$enable_application"
+ if test "$MOZILLA_1_9_2_BRANCH" = "1"; then
   if test "$CPU_ARCH" != "sparc"; then
     PROFILE_USE_CFLAGS="-xprofile=use:$_objdir/$enable_application"
     PROFILE_USE_LDFLAGS="-xprofile=use:$_objdir/$enable_application"
   else
     PROFILE_USE_CFLAGS="-xlinkopt=2 -xprofile=use:$_objdir/$enable_application"
     PROFILE_USE_LDFLAGS="-xlinkopt=2 -xprofile=use:$_objdir/$enable_application"
   fi
+ else
+  PROFILE_USE_CFLAGS="-xprofile=use:$_objdir/$enable_application"
+  PROFILE_USE_LDFLAGS="-xprofile=use:$_objdir/$enable_application"
+ fi
 fi
 
 AC_SUBST(PROFILE_GEN_CFLAGS)
 AC_SUBST(PROFILE_GEN_LDFLAGS)
 AC_SUBST(PROFILE_USE_CFLAGS)
 AC_SUBST(PROFILE_USE_LDFLAGS)
 
 AC_LANG_CPLUSPLUS