More Solaris fixes.
authorRyan C. Gordon <icculus@icculus.org>
Mon, 13 Apr 2009 03:40:02 -0400
changeset 985 dc38a51538aa
parent 984 91ddcf902de2
child 986 e69d37f80ce2
More Solaris fixes.
CMakeLists.txt
--- a/CMakeLists.txt	Mon Apr 13 03:27:53 2009 -0400
+++ b/CMakeLists.txt	Mon Apr 13 03:40:02 2009 -0400
@@ -26,6 +26,10 @@
     SET(OS2 TRUE)
 ENDIF (CMAKE_SYSTEM MATCHES OS2)
 
+IF(CMAKE_SYSTEM_NAME STREQUAL "SunOS")
+    SET(SOLARIS TRUE)
+ENDIF(CMAKE_SYSTEM_NAME STREQUAL "SunOS")
+
 INCLUDE(CheckIncludeFile)
 INCLUDE(CheckLibraryExists)
 INCLUDE(CheckCSourceCompiles)
@@ -63,9 +67,9 @@
     " PHYSFS_IS_GCC4)
 
     IF(PHYSFS_IS_GCC4)
-        IF (NOT OS2)  # Not supported on OS/2.
+        IF((NOT OS2) AND (NOT SOLARIS)) # Not supported on OS/2 or Solaris.
             ADD_DEFINITIONS(-fvisibility=hidden)
-        ENDIF (NOT OS2)
+        ENDIF((NOT OS2) AND (NOT SOLARIS))
     ENDIF(PHYSFS_IS_GCC4)
 ENDIF(CMAKE_COMPILER_IS_GNUCC)