Bug 132838 - [GTK] Unable to do a static build of WebKitGTK+
Summary: [GTK] Unable to do a static build of WebKitGTK+
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-12 14:48 PDT by Carlos Alberto Lopez Perez
Modified: 2017-03-11 10:57 PST (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Carlos Alberto Lopez Perez 2014-05-12 14:48:49 PDT
Hi,

I'm trying to produce a static build of WebKitGTK+ (AMD64) but I'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' 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'
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="-DBUILD_STATIC=ON"

And I got thousands of linking errors... http://sprunge.us/EbhC shows only the last 1000 lines.
Comment 1 Philippe Normand 2014-05-13 03:54:28 PDT
Do you have the AR_FLAGS env var set? If so unset it and try again
Comment 2 Carlos Alberto Lopez Perez 2014-05-13 04:46:50 PDT
(In reply to comment #1)
> Do you have the AR_FLAGS env var set? If so unset it and try again

I don't have this variable on my environment.