Bug 60065 - --gc-sections causes build failure on Solaris
Summary: --gc-sections causes build failure on Solaris
Status: UNCONFIRMED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Other
: P3 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-03 14:43 PDT by Pavel Heimlich (hajma)
Modified: 2011-05-03 14:43 PDT (History)
0 users

See Also:


Attachments
patch (455 bytes, patch)
2011-05-03 14:43 PDT, Pavel Heimlich (hajma)
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Pavel Heimlich (hajma) 2011-05-03 14:43:31 PDT
Created attachment 92134 [details]
patch

Trying to build Qt 4.7.2 on Solaris 11 with gcc 4.5.2 fails because webkit/WebCore/WebCore.pro is adding "-Wl,--gc-sections" flag.
This is not supported by the Solaris linker.

It was mentioned a year ago at http://lists.qt.nokia.com/pipermail/qt-interest/2010-May/023701.html.
I found out the attached patch helped me to finish the build.

in webkit trunk the code is part of WebCore.pri as it was moved some time ago