<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [CMake GTK OSX] webkit-gtk 2.11.2 fails to link: ld: unknown option: -rpath=."
   href="https://bugs.webkit.org/show_bug.cgi?id=152650">152650</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[CMake GTK OSX] webkit-gtk 2.11.2 fails to link: ld: unknown option: -rpath=.
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>WebKit
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>Safari 9
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Unspecified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Unspecified
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>Normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P2
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>WebKit Gtk
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>webkit-unassigned&#64;lists.webkit.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>jeremyhu&#64;apple.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>bugs-noreply&#64;webkitgtk.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>I'm trying to build webkit-gtk 2.11.2 on OS X (the last version we had working was 2.4.9, before the move to cmake).  We are configuring as follows:

cmake -DCMAKE_INSTALL_PREFIX=/opt/local -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_COLOR_MAKEFILE=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON -DCMAKE_INSTALL_RPATH=/opt/local/lib -DCMAKE_INSTALL_NAME_DIR=/opt/local/lib -DCMAKE_SYSTEM_PREFIX_PATH=&quot;/opt/local;/usr&quot; -DCMAKE_MODULE_PATH=/opt/local/share/cmake/Modules -DCMAKE_FIND_FRAMEWORK=LAST -Wno-dev -DPORT=GTK -DENABLE_X11_TARGET=ON -DENABLE_QUARTZ_TARGET=OFF -DLLVM_CONFIG_EXE=/opt/local/bin/llvm-config-mp-3.7 -DENABLE_VIDEO=ON -DCMAKE_C_FLAGS_RELEASE=&quot;-DNDEBUG&quot; -DCMAKE_CXX_FLAGS_RELEASE=&quot;-DNDEBUG&quot; -DCMAKE_OSX_ARCHITECTURES=&quot;x86_64&quot; -DCMAKE_OSX_DEPLOYMENT_TARGET=&quot;10.11&quot; -DCMAKE_OSX_SYSROOT=&quot;/&quot;

After working around <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [CMake GTK OSX] webkit-gtk 2.11.2 fails to link libllvmForJSC.dylib on OS X due to bad link-line: ld: unknown option: --version-script="
   href="show_bug.cgi?id=152640">bug #152640</a>, <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [GTK OSX] webkit-gtk 2.11.2 fails to link libllvmForJSC.dylib on OS X due to duplicate (local) abort and raise symbols"
   href="show_bug.cgi?id=152641">bug #152641</a>, and <a href="https://bugzilla.gnome.org/show_bug.cgi?id=625195">https://bugzilla.gnome.org/show_bug.cgi?id=625195</a>, the build fails at:

[ 96%] Generating ../../WebKit2-4.0.gir
cd /opt/local/var/macports/build/_Volumes_Home_jeremy_src_macports_trunk_dports_www_webkit-gtk-devel/webkit-gtk-devel/work/webkitgtk-2.11.2/Source/WebKit2 &amp;&amp; CC=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang CFLAGS=-Wno-deprecated-declarations LDFLAGS= LD_LIBRARY_PATH=&quot;/opt/local/var/macports/build/_Volumes_Home_jeremy_src_macports_trunk_dports_www_webkit-gtk-devel/webkit-gtk-devel/work/webkitgtk-2.11.2/lib:&quot; /opt/local/bin/g-ir-scanner --quiet --warn-all --symbol-prefix=webkit --identifier-prefix=WebKit --namespace=WebKit2 --nsversion=4.0 --include=GObject-2.0 --include=Gtk-3.0 --include=Soup-2.4 --include-uninstalled=/opt/local/var/macports/build/_Volumes_Home_jeremy_src_macports_trunk_dports_www_webkit-gtk-devel/webkit-gtk-devel/work/webkitgtk-2.11.2/JavaScriptCore-4.0.gir --library=webkit2gtk-4.0 --library=javascriptcoregtk-4.0 -L/opt/local/var/macports/build/_Volumes_Home_jeremy_src_macports_trunk_dports_www_webkit-
/opt/local/var/macports/build/_Volumes_Home_jeremy_src_macports_trunk_dports_www_webkit-gtk-devel/webkit-gtk-devel/work/webkitgtk-2.11.2/Source/WebKit2/UIProcess/API/gtk/WebKitNotificationPermissionRequest.h /opt/local/var/macports/build/_Volumes_Home_jeremy_src_macports_trunk_dports_www_webkit-gtk-devel/webkit-gtk-devel/work/webkitgtk-2.11.2/Source/WebKit2/UIProcess/API/gtk/WebKitNotification.h /opt/local/var/macports/build/_Volumes_Home_jeremy_src_macports_trunk_dports_www_webkit-gtk-devel/webkit-gtk-devel/work/webkitgtk-2.11.2/Source/WebKit2/UIProcess/API/gtk/WebKitPermissionRequest.h /opt/local/var/macports/build/_Volumes_Home_jeremy_src_macports_trunk_dports_www_webkit-gtk-devel/webkit-gtk-devel/work/webkitgtk-2.11.2/Source/WebKit2/UIProcess/API/gtk/WebKitPlugin.h /opt/local/var/macports/build/_Volumes_Home_jeremy_src_macports_trunk_dports_www_webkit-gtk-devel/webkit-gtk-devel/work/webkitgtk-2.11.2/Source/WebKit2/UIProcess/API/gtk/WebKitPolicyDecision.h /opt/local/var/macports/b
dyld: Library not loaded: /opt/local/lib/libwebkit2gtk-4.0.37.dylib
  Referenced from: /opt/local/var/macports/build/_Volumes_Home_jeremy_src_macports_trunk_dports_www_webkit-gtk-devel/webkit-gtk-devel/work/webkitgtk-2.11.2/Source/WebKit2/tmp-introspectx4dcfN/WebKit2-4.0
  Reason: image not found
Command '['/opt/local/var/macports/build/_Volumes_Home_jeremy_src_macports_trunk_dports_www_webkit-gtk-devel/webkit-gtk-devel/work/webkitgtk-2.11.2/Source/WebKit2/tmp-introspectx4dcfN/WebKit2-4.0', '--introspect-dump=/opt/local/var/macports/build/_Volumes_Home_jeremy_src_macports_trunk_dports_www_webkit-gtk-devel/webkit-gtk-devel/work/webkitgtk-2.11.2/Source/WebKit2/tmp-introspectx4dcfN/functions.txt,/opt/local/var/macports/build/_Volumes_Home_jeremy_src_macports_trunk_dports_www_webkit-gtk-devel/webkit-gtk-devel/work/webkitgtk-2.11.2/Source/WebKit2/tmp-introspectx4dcfN/dump.xml']' returned non-zero exit status -5
make[2]: *** [WebKit2-4.0.gir] Error 1

Not sure if this is a bug in g-ir-scanner or in the build system, so starting with webkit.

It looks like you probably want to have DYLD_LIBRARY_PATH set in addition to your LD_LIBRARY_PATH since you're actually executing that intermediate file.  That's what makes me suspect that this may also need some change in g-ir-scanner.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>