NetBSD Problem Report #45294

From www@NetBSD.org  Thu Aug 25 07:11:18 2011
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 8718D63C416
	for <gnats-bugs@gnats.NetBSD.org>; Thu, 25 Aug 2011 07:11:18 +0000 (UTC)
Message-Id: <20110825071110.248DC63BAC3@www.NetBSD.org>
Date: Thu, 25 Aug 2011 07:11:10 +0000 (UTC)
From: joern.clausen@uni-bielefeld.de
Reply-To: joernc@gmail.com
To: gnats-bugs@NetBSD.org
Subject: webkit in x11/qt4-libs assumes GNU ld
X-Send-Pr-Version: www-1.0

>Number:         45294
>Category:       pkg
>Synopsis:       webkit in x11/qt4-libs assumes GNU ld
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Aug 25 07:15:00 +0000 2011
>Closed-Date:    Wed Nov 13 18:53:58 +0000 2019
>Last-Modified:  Wed Nov 13 18:53:58 +0000 2019
>Originator:     Jörn Clausen
>Release:        
>Organization:
University of Bielefeld
>Environment:
>Description:
webkit in x11/qt4-libs assumes unconditionally, that GNU ld is used as linker and inserts the flag "--gc-sections". This fails e.g. when using Sun ld.
>How-To-Repeat:

>Fix:
A quick fix is to remove this flag:

--- src/3rdparty/webkit/WebCore/WebCore.pro.orig        2011-03-30 05:18:46.000000000 +0000
+++ src/3rdparty/webkit/WebCore/WebCore.pro
@@ -90,7 +90,6 @@ unix {
 }

 unix:!mac:*-g++*:QMAKE_CXXFLAGS += -ffunction-sections -fdata-sections 
-unix:!mac:*-g++*:QMAKE_LFLAGS += -Wl,--gc-sections
 linux*-g++*:QMAKE_LFLAGS += $$QMAKE_LFLAGS_NOUNDEF

 CONFIG(release):!CONFIG(standalone_package) {

A better fix would be to check for the specific OS (actually the linker).

As QT Bug Tracker requires registration, I have not reported this upstream.

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->closed
State-Changed-By: maya@NetBSD.org
State-Changed-When: Wed, 13 Nov 2019 18:53:58 +0000
State-Changed-Why:
Globally worked around for darwin/sunos:
platform/SunOS.mk
84:BUILDLINK_TRANSFORM+=	rm:-Wl,--gc-sections

platform/Darwin.mk
165:BUILDLINK_TRANSFORM+=	rm:-Wl,--gc-sections

One could argue "perhaps we should upstream this", but it's qt4, so not going to happen.
THanks for the report!


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.