From patchwork Fri Apr 21 11:27:11 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam X-Patchwork-Id: 753298 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3w8YPH5y8tz9s2P for ; Fri, 21 Apr 2017 21:27:31 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=mail.ru header.i=@mail.ru header.b="WcoNEujh"; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 9CD9A89FC5; Fri, 21 Apr 2017 11:27:28 +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 MsCt6PN9d-O9; Fri, 21 Apr 2017 11:27:26 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id BDC3089FB2; Fri, 21 Apr 2017 11:27:26 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 592131C23EC for ; Fri, 21 Apr 2017 11:27:25 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 41530892D7 for ; Fri, 21 Apr 2017 11:27:25 +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 LMWeBozmmexO for ; Fri, 21 Apr 2017 11:27:23 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from smtp50.i.mail.ru (smtp50.i.mail.ru [94.100.177.110]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 7D4EB892D6 for ; Fri, 21 Apr 2017 11:27:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mail.ru; s=mail2; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From; bh=sBffJhCplIkNzJ2WuFZS7HecKjEzVe4jX8eKoPCKMF0=; b=WcoNEujhFMGjJWKJOtBLo3bUFZhhivXdZ5ZNicqL/UqlFAjhl0TdDXnoUzgzVe5cQBeK/klqIF2x/YOEZ2cBiyKvm3tLPcbJlc8Ew9G2z3eUvJUJ+J3NFN6gu6O1MVeDXnQmoKU9cS9J5lW37vdpyNBa4G3SzTyKGamqi6aeSps=; Received: from [87.245.155.196] (port=57505 helo=localhost.localdomain) by smtp50.i.mail.ru with esmtpa (envelope-from ) id 1d1Wid-0000gn-Im; Fri, 21 Apr 2017 14:27:19 +0300 From: Semyon Kolganov To: buildroot@buildroot.org Date: Fri, 21 Apr 2017 14:27:11 +0300 Message-Id: <1492774031-25802-1-git-send-email-semenak94@mail.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: References: Authentication-Results: smtp50.i.mail.ru; auth=pass smtp.auth=semenak94@mail.ru smtp.mailfrom=semenak94@mail.ru X-7FA49CB5: 0D63561A33F958A52004AF87A12983866E6D16DB1E4223E2E53C2D4C4D90898A9F18ECD7E95F35E929AFE063DF4C541C312CDB65E5E020BF103A0AF587ABB0DC731C566533BA786AA9C8DD7DD11C59746FED454B719173D6831AA452D03249FDA1AE0C7AE1FBD3F9574AF45C6390F7466C804C2ED20926168FB05168BE4CE3AF X-Mailru-Sender: 0F799FDC0FA35593BD5997882695C6F18B22AEC33E5152C0D2307D5A821EE752AD961ED1F4D06F08BDCA453EEC707B4E72B1F983A378FC72E0508A1623091428E08AD13A84CB39459389353783623EF14239CF2AF0A6D4F80DA7A0AF5A3A8387 X-Mras: OK Subject: [Buildroot] [PATCHv5] mpir: fix build failure 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" Signed-off-by: Semyon Kolganov --- Changes between v4 and v5: - right env variable Changes between v3 and v4: - small formatting change Changes between v2 and v3: - fixed build for mips Changes between v1 and v2: - removed unneeded depend on - fixed build for powerpc --- package/mpir/mpir.mk | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/package/mpir/mpir.mk b/package/mpir/mpir.mk index 430d587..85569da 100644 --- a/package/mpir/mpir.mk +++ b/package/mpir/mpir.mk @@ -12,4 +12,17 @@ MPIR_LICENSE_FILES = COPYING.LIB MPIR_INSTALL_STAGING = YES MPIR_DEPENDENCIES = gmp host-yasm +ifeq ($(BR2_MIPS_NABI32),y) +MPIR_CONF_OPTS += ABI=n32 +endif + +ifeq ($(BR2_MIPS_NABI64),y) +MPIR_CONF_OPTS += ABI=n64 +endif + +ifeq ($(BR2_powerpc_CLASSIC),y) +MPIR_CONF_OPTS += ABI=mode64 +MPIR_CONF_ENV += MPN_PATH=generic +endif + $(eval $(autotools-package))