[GTK] Use --version-script only on Linux
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 12 Oct 2015 17:01:05 +0000 (17:01 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 12 Oct 2015 17:01:05 +0000 (17:01 +0000)
https://bugs.webkit.org/show_bug.cgi?id=144555

Patch by Philip Chimento <philip.chimento@gmail.com> on 2015-10-12
Reviewed by Philippe Normand.

* Source/cmake/OptionsGTK.cmake: Don't add --version-script
option on Darwin (whose linker doesn't support it.)

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@190856 268f45cc-cd09-0410-ab3c-d52691b4dbfc

ChangeLog
Source/cmake/OptionsGTK.cmake

index 52ad7f4..83dd484 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2015-10-12  Philip Chimento  <philip.chimento@gmail.com>
+
+        [GTK] Use --version-script only on Linux
+        https://bugs.webkit.org/show_bug.cgi?id=144555
+
+        Reviewed by Philippe Normand.
+
+        * Source/cmake/OptionsGTK.cmake: Don't add --version-script
+        option on Darwin (whose linker doesn't support it.)
+
 2015-10-09  Gyuyoung Kim  <gyuyoung.kim@webkit.org>
 
         [CMake] Remove ENABLE_SUBPIXEL_LAYOUT macro
index 92ef4b9..32aa62f 100644 (file)
@@ -104,7 +104,9 @@ if (DEVELOPER_MODE)
 else ()
     WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_MINIBROWSER PUBLIC OFF)
     WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_API_TESTS PRIVATE OFF)
-    set(WebKit2_VERSION_SCRIPT "-Wl,--version-script,${CMAKE_MODULE_PATH}/gtksymbols.filter")
+    if (NOT CMAKE_SYSTEM_NAME MATCHES "Darwin")
+        set(WebKit2_VERSION_SCRIPT "-Wl,--version-script,${CMAKE_MODULE_PATH}/gtksymbols.filter")
+    endif ()
 endif ()
 
 if (CMAKE_SYSTEM_NAME MATCHES "Linux")