<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>305186</bug_id>
          
          <creation_ts>2026-01-09 03:00:25 -0800</creation_ts>
          <short_desc>REGRESSION(304666@main) [WPE] Build broken when DEVELOPER_MODE=OFF due to undefined symbols when linking jsc</short_desc>
          <delta_ts>2026-01-09 05:36:00 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WPE WebKit</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=304326</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Carlos Alberto Lopez Perez">clopez</reporter>
          <assigned_to name="Carlos Alberto Lopez Perez">clopez</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>psaavedra</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2170602</commentid>
    <comment_count>0</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2026-01-09 03:00:25 -0800</bug_when>
    <thetext>304666@main introduced an optimization in WPE to link the jsc binary and other test binaries against libWPEWebKit instead of statically linking (embedding) WTF, JSC and other libraries inside.

However, it happens that when DEVELOPER_MODE is not enabled we pass a linker filter to libWPEWebKit that makes many of the symbols (JSC::* WTF:*) required to link this binaries not longer visible.

Thanks to Pablo Saavedra for the original report and an initial patch proposal</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2170603</commentid>
    <comment_count>1</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2026-01-09 03:01:57 -0800</bug_when>
    <thetext>This is the filter:

Source/WebKit/PlatformWPE.cmake-if (NOT DEVELOPER_MODE AND NOT CMAKE_SYSTEM_NAME MATCHES &quot;Darwin&quot;)
Source/WebKit/PlatformWPE.cmake:    WEBKIT_ADD_TARGET_PROPERTIES(WebKit LINK_FLAGS &quot;-Wl,--version-script,${CMAKE_CURRENT_SOURCE_DIR}/webkitglib-symbols.map&quot;)
Source/WebKit/PlatformWPE.cmake:    set_property(TARGET WebKit APPEND PROPERTY LINK_DEPENDS &quot;${CMAKE_CURRENT_SOURCE_DIR}/webkitglib-symbols.map&quot;)
Source/WebKit/PlatformWPE.cmake-endif ()</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2170604</commentid>
    <comment_count>2</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2026-01-09 03:07:01 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/56323</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2170632</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2026-01-09 05:35:56 -0800</bug_when>
    <thetext>Committed 305354@main (6d81a49969e7): &lt;https://commits.webkit.org/305354@main&gt;

Reviewed commits have been landed. Closing PR #56323 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>