Bug 537070 qcms failed to build with -m64 on Solaris x86_64 r=jrmuizel
authorGinn Chen <ginn.chen@sun.com>
Wed, 06 Jan 2010 15:02:04 +0800
changeset 36874 601acea3206e522e17314fc94b905a52948228db
parent 36873 418e86652d91d52bdcffd8b63e57620bf78c1de7
child 36875 065384cbdb59440d31dbbb2859200dadee87c938
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
reviewersjrmuizel
bugs537070
milestone1.9.3a1pre
Bug 537070 qcms failed to build with -m64 on Solaris x86_64 r=jrmuizel
gfx/qcms/Makefile.in
--- a/gfx/qcms/Makefile.in
+++ b/gfx/qcms/Makefile.in
@@ -17,19 +17,26 @@ CSRCS = iccread.c transform.c
 
 ifeq (86,$(findstring 86,$(OS_TEST)))
 	CSRCS += transform-sse2.c transform-sse1.c
 ifdef GNU_CC
 	SSE1_FLAGS=-msse
 	SSE2_FLAGS=-msse2
 else
 ifeq ($(SOLARIS_SUNPRO_CC),1)
+ifneq (64,$(findstring 64,$(OS_TEST)))
 	SSE1_FLAGS=-xarch=sse
 	SSE2_FLAGS=-xarch=sse2
 else
+# Sun Studio doesn't work correctly for x86 intristics
+# with -m64 and without optimization.
+	SSE1_FLAGS= -xO4
+	SSE2_FLAGS= -xO4
+endif
+else
 	SSE1_FLAGS=
 	SSE2_FLAGS=
 endif
 endif
 endif
 
 FORCE_STATIC_LIB = 1
 # This library is used by other shared libs