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: joern.clausen@uni-bielefeld.de
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:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Aug 25 07:15:00 +0000 2011
>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.

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.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.