<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [GTK] [2.14.0] _cairo_surface_has_snapshots (surface)' failed"
   href="https://bugs.webkit.org/show_bug.cgi?id=162497#c2">Comment # 2</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [GTK] [2.14.0] _cairo_surface_has_snapshots (surface)' failed"
   href="https://bugs.webkit.org/show_bug.cgi?id=162497">bug 162497</a>
              from <span class="vcard"><a class="email" href="mailto:john.frankish&#64;outlook.com" title="john.frankish&#64;outlook.com">john.frankish&#64;outlook.com</a>
</span></b>
        <pre>I tried, but the build fails with:

[ 97%] Linking CXX shared library ../../lib/libwebkit2gtk-4.0.so
collect2: error: ld returned 1 exit status
make[2]: *** [Source/WebKit2/CMakeFiles/WebKit2.dir/build.make:19448: lib/libwebkit2gtk-4.0.so.37.14.9] Error 1
make[1]: *** [CMakeFiles/Makefile2:1534: Source/WebKit2/CMakeFiles/WebKit2.dir/all] Error 2
make: *** [Makefile:150: all] Error 2
Command exited with non-zero status 2

Using:

cmake -DCMAKE_C_FLAGS=&quot;-mtune=generic -Os -pipe&quot; -DCMAKE_CXX_FLAGS=&quot;-mtune=generic -Os -pipe&quot; -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_INSTALL_LIBDIR=/usr/local/lib -DCMAKE_INSTALL_LIBEXECDIR=/usr/local/lib -DCMAKE_INSTALL_LOCALSTATEDIR=/var -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_SKIP_RPATH=ON -DENABLE_ACCELERATED_2D_CANVAS=OFF -DUSE_LD_GOLD=OFF -DENABLE_MINIBROWSER=ON -DUSE_LIBHYPHEN=OFF -DPORT=GTK -Wno-dev ../

find . -name CMakeCache.txt -type f -exec sed -i 's/-O2//g' {} \;
find . -name CMakeCache.txt -type f -exec sed -i 's/-O3//g' {} \;

CC=&quot;gcc -flto -fuse-linker-plugin&quot; CXX=&quot;g++ -flto -fuse-linker-plugin&quot; -j5

Note that the same thing, but with -DCMAKE_BUILD_TYPE=Release works</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>