<?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>132838</bug_id>
          
          <creation_ts>2014-05-12 14:48:49 -0700</creation_ts>
          <short_desc>[GTK] Unable to do a static build of WebKitGTK+</short_desc>
          <delta_ts>2017-03-11 10:57:15 -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>WebKitGTK</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <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="Nobody">webkit-unassigned</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>cgarcia</cc>
    
    <cc>clopez</cc>
    
    <cc>mrobinson</cc>
    
    <cc>pnormand</cc>
    
    <cc>zan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1008741</commentid>
    <comment_count>0</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2014-05-12 14:48:49 -0700</bug_when>
    <thetext>Hi,

I&apos;m trying to produce a static build of WebKitGTK+ (AMD64) but I&apos;m unable to do it.
I tried to do it both using the last stable release, as well as using the last trunk.


For the stable release I did this:

$ ./configure --enable-static
$ make

I got the following error:

[....]
  CXX      Source/JavaScriptCore/yarr/libjavascriptcoregtk_3_0_la-YarrCanonicalizeUCS2.lo
  CXX      Source/JavaScriptCore/yarr/libjavascriptcoregtk_3_0_la-YarrInterpreter.lo
  CXX      Source/JavaScriptCore/yarr/libjavascriptcoregtk_3_0_la-YarrJIT.lo
  CXX      Source/JavaScriptCore/yarr/libjavascriptcoregtk_3_0_la-YarrPattern.lo
  CXX      Source/JavaScriptCore/yarr/libjavascriptcoregtk_3_0_la-YarrSyntaxChecker.lo
  CXX      DerivedSources/JavaScriptCore/libjavascriptcoregtk_3_0_la-InspectorJSBackendDispatchers.lo
  CXX      DerivedSources/JavaScriptCore/libjavascriptcoregtk_3_0_la-InspectorJSFrontendDispatchers.lo
  CXX      DerivedSources/JavaScriptCore/libjavascriptcoregtk_3_0_la-InspectorJSTypeBuilders.lo
  CXXLD    libjavascriptcoregtk-3.0.la
ar: `x&apos; cannot be used on thin archives.
make[1]: *** [libjavascriptcoregtk-3.0.la] Error 1
make[1]: Leaving directory `/home/gardener/WebKit-2.4.2/webkitgtk-2.4.2&apos;
make: *** [all] Error 2


For trunk (r168621) I applied this patch: http://sprunge.us/eLjf and build WebKitGTK+ as:
$ ./Tools/Scripts/build-webkit --gtk --cmakeargs=&quot;-DBUILD_STATIC=ON&quot;

And I got thousands of linking errors... http://sprunge.us/EbhC shows only the last 1000 lines.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1008907</commentid>
    <comment_count>1</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2014-05-13 03:54:28 -0700</bug_when>
    <thetext>Do you have the AR_FLAGS env var set? If so unset it and try again</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1008910</commentid>
    <comment_count>2</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2014-05-13 04:46:50 -0700</bug_when>
    <thetext>(In reply to comment #1)
&gt; Do you have the AR_FLAGS env var set? If so unset it and try again

I don&apos;t have this variable on my environment.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>