From patchwork Wed Oct 7 07:02:46 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Lukichev X-Patchwork-Id: 527157 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id CD33A140D96 for ; Wed, 7 Oct 2015 18:02:57 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=EnPqwMys; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 1A4F088B7F; Wed, 7 Oct 2015 07:02:57 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jGurVjKX4T6H; Wed, 7 Oct 2015 07:02:56 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 8C8698897D; Wed, 7 Oct 2015 07:02:56 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 464C51C1F49 for ; Wed, 7 Oct 2015 07:02:55 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 420DC89002 for ; Wed, 7 Oct 2015 07:02:55 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bOmXGKd3q8-I for ; Wed, 7 Oct 2015 07:02:54 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-la0-f46.google.com (mail-la0-f46.google.com [209.85.215.46]) by hemlock.osuosl.org (Postfix) with ESMTPS id 775DF8926E for ; Wed, 7 Oct 2015 07:02:54 +0000 (UTC) Received: by lafn2 with SMTP id n2so2221160laf.0 for ; Wed, 07 Oct 2015 00:02:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=OFmTywm0MQJmUz1+U/rOoFnrbVCHDToV4icZWIOdUqc=; b=EnPqwMyskiUNLmxqApnGpUiciiQIVLjK83R7VcmybzKWj5aVJ2Y8S55jby2BqI/Lq2 Q8bbsv3rPAJTsot9er93EosB7KgOktzfXrBuTcF03Sr+eEbHPcHf7Vwhpr7NABNWnwae DqLATH6vvX8Lsk+UYedn+gAgl2Ih41W8eILekVIj7i/r6SI5AkOvXekggnGL8DcO00r0 ESlmmcBRoiplzao79nFK+kVstmJX6BMHGRr1rKsdjuo71POnCh2tbTqK35T/sa0qH43y J67XuqAv7DGM21kwSW1K4MIWOIdjetP8ZPnhGPeaJh3DAonLH3gl4PAgldGNjsMyARI5 Eh4w== X-Received: by 10.112.234.199 with SMTP id ug7mr17028714lbc.116.1444201372883; Wed, 07 Oct 2015 00:02:52 -0700 (PDT) Received: from localhost.localdomain (37-219-124-158.nat.bb.dnainternet.fi. [37.219.124.158]) by smtp.googlemail.com with ESMTPSA id j9sm5905351lbs.40.2015.10.07.00.02.51 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 07 Oct 2015 00:02:52 -0700 (PDT) From: Alexander Lukichev To: buildroot@buildroot.org Date: Wed, 7 Oct 2015 10:02:46 +0300 Message-Id: <1444201366-354-1-git-send-email-alexander.lukichev@gmail.com> X-Mailer: git-send-email 2.6.1 In-Reply-To: <1444128975-17943-1-git-send-email-alexander.lukichev@gmail.com> References: <1444128975-17943-1-git-send-email-alexander.lukichev@gmail.com> Subject: [Buildroot] [PATCH v2] qt: fix build for arm with BR2_STATIC_LIBS 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: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Some Buildroot-generated static toolchains for ARM do not have dlfcn.h header, which breaks builds of qt-4.8.7 because its QtCore's plugin loader expects this header to be present (and dynamic libraries to be supported). For certain platforms without dynamic libraries, there is a QT_NO_DYNAMIC_LIBRARY constant defined in plugin loader's source. This patch puts that constant into Qt's build environment if Buildroot is configured without shared library support. Fixes: - http://autobuild.buildroot.net/results/11a4c19638ca211bd2a424fd92602166235c9433 - http://autobuild.buildroot.net/results/c056e8781558267f6971a5f017f47e90dcf24e07 - http://autobuild.buildroot.net/results/b8f34afa8686e890a1a3882a52081bb6a3b9c13b and several others. Signed-off-by: Alexander Lukichev --- Changes v2: unnecessary Qt patch removed (Arnout). --- package/qt/qt.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package/qt/qt.mk b/package/qt/qt.mk index e0e5d22..a64d32f 100644 --- a/package/qt/qt.mk +++ b/package/qt/qt.mk @@ -203,6 +203,10 @@ else QT_CONFIGURE_OPTS += -static endif +ifeq ($(BR2_STATIC_LIBS),y) +QT_CONFIGURE_OPTS += -D QT_NO_DYNAMIC_LIBRARY +endif + ifeq ($(BR2_ENDIAN),"LITTLE") QT_CONFIGURE_OPTS += -little-endian else