summaryrefslogtreecommitdiff
path: root/basebmp
diff options
context:
space:
mode:
Diffstat (limited to 'basebmp')
-rw-r--r--basebmp/source/makefile.mk4
-rw-r--r--basebmp/test/makefile.mk6
2 files changed, 8 insertions, 2 deletions
diff --git a/basebmp/source/makefile.mk b/basebmp/source/makefile.mk
index 86b166d35d1e..658465523bfc 100644
--- a/basebmp/source/makefile.mk
+++ b/basebmp/source/makefile.mk
@@ -57,9 +57,9 @@ CDEFS+= -DVIGRA_HAS_LONG_DOUBLE
CDEFS+= -DBASEBMP_NO_NESTED_TEMPLATE_PARAMETER -DVIGRA_WITHOUT_NESTED_TEMPLATE_PARAMS
.ENDIF
-# SunStudio 12, LP64 mode (-m64): three test cases of the unit tests fail
+# SunStudio 12 (-m64 and -m32 modes): three test cases of the unit tests fail
# if compiled with default -xalias_level (and optimization level -xO3)
-.IF "$(OS)$(CPU)"=="SOLARISU"
+.IF "$(OS)"=="SOLARIS"
CDEFS+=-xalias_level=compatible
.ENDIF
diff --git a/basebmp/test/makefile.mk b/basebmp/test/makefile.mk
index b9f81f11c890..d91f51595a9a 100644
--- a/basebmp/test/makefile.mk
+++ b/basebmp/test/makefile.mk
@@ -55,6 +55,12 @@ CFLAGS += -fno-inline
.ENDIF
+# SunStudio 12 (-m64 and -m32 modes): three test cases of the unit tests fail
+# if compiled with default -xalias_level (and optimization level -xO3)
+.IF "$(OS)"=="SOLARIS"
+CDEFS+=-xalias_level=compatible
+.ENDIF
+
# --- Common ----------------------------------------------------------
# BEGIN ----------------------------------------------------------------