Don't use -fvisibility=hidden on several platforms. stable-2.0
authorRyan C. Gordon <icculus@icculus.org>
Sun, 12 Jul 2009 16:46:06 -0400
branchstable-2.0
changeset 1010 13f24148b2bb
parent 1008 395fd6ae9b6d
child 1013 d0a87845e580
Don't use -fvisibility=hidden on several platforms.
CMakeLists.txt
--- a/CMakeLists.txt	Wed Jul 08 18:48:30 2009 -0400
+++ b/CMakeLists.txt	Sun Jul 12 16:46:06 2009 -0400
@@ -60,7 +60,10 @@
     " PHYSFS_IS_GCC4)
 
     IF(PHYSFS_IS_GCC4)
-        ADD_DEFINITIONS(-fvisibility=hidden)
+        # Not supported on several operating systems at this time.
+        IF(NOT OS2 AND NOT SOLARIS AND NOT WINDOWS)
+             ADD_DEFINITIONS(-fvisibility=hidden)
+        ENDIF(NOT OS2 AND NOT SOLARIS AND NOT WINDOWS)
     ENDIF(PHYSFS_IS_GCC4)
 ENDIF(CMAKE_COMPILER_IS_GNUCC)