From patchwork Fri Nov 14 10:52:20 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Vicente Olivert Riera X-Patchwork-Id: 410765 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id D68C01400F4 for ; Fri, 14 Nov 2014 21:52:35 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id D80A7336FE; Fri, 14 Nov 2014 10:52:34 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yCehlHViWILT; Fri, 14 Nov 2014 10:52:33 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id AC16C337B2; Fri, 14 Nov 2014 10:52:33 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 902401C1EFA for ; Fri, 14 Nov 2014 10:52:32 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 8A650928F2 for ; Fri, 14 Nov 2014 10:52:32 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id s+76w5QxG2EX for ; Fri, 14 Nov 2014 10:52:32 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mailapp01.imgtec.com (mailapp01.imgtec.com [195.59.15.196]) by whitealder.osuosl.org (Postfix) with ESMTP id D49B192C48 for ; Fri, 14 Nov 2014 10:52:31 +0000 (UTC) Received: from KLMAIL01.kl.imgtec.org (unknown [192.168.5.35]) by Websense Email Security Gateway with ESMTPS id B8FE52BAA2DD0; Fri, 14 Nov 2014 10:52:28 +0000 (GMT) Received: from LEMAIL01.le.imgtec.org (192.168.152.62) by KLMAIL01.kl.imgtec.org (192.168.5.35) with Microsoft SMTP Server (TLS) id 14.3.195.1; Fri, 14 Nov 2014 10:52:30 +0000 Received: from localhost.localdomain (192.168.154.104) by LEMAIL01.le.imgtec.org (192.168.152.62) with Microsoft SMTP Server (TLS) id 14.3.210.2; Fri, 14 Nov 2014 10:52:30 +0000 From: Vicente Olivert Riera To: Date: Fri, 14 Nov 2014 10:52:20 +0000 Message-ID: <1415962341-9642-1-git-send-email-Vincent.Riera@imgtec.com> X-Mailer: git-send-email 1.7.1 MIME-Version: 1.0 X-Originating-IP: [192.168.154.104] Cc: thomas.petazzoni@free-electrons.com Subject: [Buildroot] [PATCH v2 1/2] qt: Script Module needs a toolchain with nptl X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Qt Script Module uses pthread_getattr_np() which is implemented in toolchains with nptl. Otherwise the compilation will fail showing this error message: ../3rdparty/javascriptcore/JavaScriptCore/runtime/Collector.cpp: In function ‘void* QTJSC::currentThreadStackBase()’: ../3rdparty/javascriptcore/JavaScriptCore/runtime/Collector.cpp:692:42: error: ‘pthread_getattr_np’ was not declared in this scope Signed-off-by: Vicente Olivert Riera --- Changes v1 -> v2 Depend on BR2_TOOLCHAIN_HAS_THREADS_NPTL instead of BR2_PTHREADS_OLD package/qt/Config.in | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/package/qt/Config.in b/package/qt/Config.in index da159b4..f4cb6b6 100644 --- a/package/qt/Config.in +++ b/package/qt/Config.in @@ -402,11 +402,16 @@ config BR2_PACKAGE_QT_OPENSSL config BR2_PACKAGE_QT_SCRIPT bool "Script Module" depends on BR2_PACKAGE_QT_ARCH_SUPPORTS_WEBKIT + depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL # needs pthread_getattr_np() default y help Build the Qt Script module. if unsure, say y. +comment "Script Module needs a toolchain with nptl" + depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL + depends on BR2_PACKAGE_QT_ARCH_SUPPORTS_WEBKIT + config BR2_PACKAGE_QT_SCRIPTTOOLS bool "Script Tools Module" depends on BR2_PACKAGE_QT_SCRIPT