From patchwork Thu May 11 13:46:57 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gwenhael Goavec-Merou X-Patchwork-Id: 761080 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3wNvf36lRjz9rvt for ; Thu, 11 May 2017 23:51:23 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 627782EAF1; Thu, 11 May 2017 13:51:21 +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 SzFC2E5asR4V; Thu, 11 May 2017 13:51:20 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id EEBDB2EC49; Thu, 11 May 2017 13:51:19 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 434E41C0021 for ; Thu, 11 May 2017 13:51:18 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 39FBC894C5 for ; Thu, 11 May 2017 13:51:18 +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 vs1859vgAt-Z for ; Thu, 11 May 2017 13:51:16 +0000 (UTC) X-Greylist: delayed 00:06:12 by SQLgrey-1.7.6 Received: from mail.femto-st.fr (lifc.univ-fcomte.fr [194.57.88.66]) by whitealder.osuosl.org (Postfix) with ESMTPS id 87F4689425 for ; Thu, 11 May 2017 13:51:16 +0000 (UTC) Received: from x230.femto-st.fr (wifi-personnels.ens2m.fr [194.167.45.222] (may be forged)) (authenticated bits=0) by mail.femto-st.fr (8.14.4/8.14.4/Debian-4+deb7u1) with ESMTP id v4BDj1Gq004357; Thu, 11 May 2017 15:45:01 +0200 From: Gwenhael Goavec-Merou To: buildroot@busybox.net Date: Thu, 11 May 2017 15:46:57 +0200 Message-Id: <20170511134657.8755-1-gwenj@trabucayre.com> X-Mailer: git-send-email 2.10.2 X-Scanned-By: MIMEDefang 2.71 on 194.57.88.66 Cc: Gwenhael Goavec-Merou Subject: [Buildroot] [PATCH] qwt: fix build when BR2_STATIC_LIBS=y 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" From: Gwenhael Goavec-Merou By default, qwt build a shared library, but when BR2_STATIC_LIBS is set compilation failed with errors like : __uClibc_main.c:(.text+0x164): undefined reference to `__fini_array_end' __uClibc_main.c:(.text+0x168): undefined reference to `__fini_array_start' __uClibc_main.c:(.text+0x16c): undefined reference to `__fini_array_start' This patch disable QwtDll to build a static library when BR2_STATIC_LIBS=y. fix: http://autobuild.buildroot.net/results/739/739406bb8073d1861933872a47802954d9767634/ Signed-off-by: Gwenhael Goavec-Merou --- package/qwt/qwt.mk | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/package/qwt/qwt.mk b/package/qwt/qwt.mk index d4e6d52..b5bdf51 100644 --- a/package/qwt/qwt.mk +++ b/package/qwt/qwt.mk @@ -41,6 +41,12 @@ else QWT_CONFIG += -e 's/^.*QWT_CONFIG.*QwtOpenGL.*$$/\# QWT_CONFIG += QwtOpenGL/' endif +ifeq ($(BR2_STATIC_LIBS),y) +QWT_CONFIG += -e 's/^.*QWT_CONFIG.*QwtDll.*$$/\# QWT_CONFIG += QwtDll/' +else +QWT_CONFIG += -e 's/^.*QWT_CONFIG.*QwtDll.*$$/\QWT_CONFIG += QwtDll/' +endif + define QWT_CONFIGURE_CMDS $(SED) $(QWT_CONFIG) $(@D)/qwtconfig.pri (cd $(@D); $(TARGET_MAKE_ENV) $(QWT_QMAKE))