2010-06-09 Leandro Pereira <leandro@profusion.mobi>
[WebKit-https.git] / cmake / WebKitHelpers.cmake
index 4d86b8e..ae48e14 100644 (file)
@@ -6,8 +6,13 @@ MACRO(WEBKIT_SET_EXTRA_COMPILER_FLAGS _target)
     IF (${OLD_COMPILE_FLAGS} STREQUAL "OLD_COMPILE_FLAGS-NOTFOUND")
         SET(OLD_COMPILE_FLAGS "")
     ENDIF ()
-    SET_TARGET_PROPERTIES (${_target} PROPERTIES
-       COMPILE_FLAGS "-fno-exceptions -fstrict-aliasing -fvisibility=hidden ${OLD_COMPILE_FLAGS}")
+    IF (SHARED_CORE)
+        SET_TARGET_PROPERTIES (${_target} PROPERTIES
+            COMPILE_FLAGS "-fno-exceptions -fstrict-aliasing ${OLD_COMPILE_FLAGS}")
+    ELSE ()
+        SET_TARGET_PROPERTIES (${_target} PROPERTIES
+            COMPILE_FLAGS "-fno-exceptions -fstrict-aliasing -fvisibility=hidden ${OLD_COMPILE_FLAGS}")
+    ENDIF ()
     UNSET(OLD_COMPILE_FLAGS)
   ENDIF ()
 ENDMACRO()