From patchwork Wed Aug 6 19:17:59 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yann Diorcet X-Patchwork-Id: 377375 X-Patchwork-Delegate: kiho@prevas.dk Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hugin.dotsrc.org (hugin.dotsrc.org [IPv6:2001:878:346::102]) by ozlabs.org (Postfix) with ESMTP id 886191400AA for ; Thu, 7 Aug 2014 05:18:39 +1000 (EST) Received: from hugin.dotsrc.org (localhost [127.0.0.1]) by hugin.dotsrc.org (Postfix) with ESMTP id 3C4D73FC85 for ; Wed, 6 Aug 2014 21:18:38 +0200 (CEST) X-Original-To: dev@oe-lite.org Delivered-To: dev@oe-lite.org Received: from mail-wi0-f180.google.com (mail-wi0-f180.google.com [209.85.212.180]) by hugin.dotsrc.org (Postfix) with ESMTPS id 934033FC85 for ; Wed, 6 Aug 2014 21:18:36 +0200 (CEST) Received: by mail-wi0-f180.google.com with SMTP id n3so3793089wiv.7 for ; Wed, 06 Aug 2014 12:18:36 -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=TrFzFoUsDcEQKhsMZOlDCApObvEiSaPRJdfw1DTKwdU=; b=cHAkoGOreFVFRvqNq1QZlqpEaFXTAEMh5Jox8Z6JQzepRZ0Tru6/XMBZPq9wktdoRj lubu3RV9idFTggiJoPelHxS3Anamyj5YiAB/JEP757p5JpXa7cKZfLrm+EqLLRCaH5Is SIPZrGDX949a3IEBEtVo/CDR7n+6kfzeMlxqeUVQFV31v3WSAFUvdNUTQqaeWtqkM6Ca mdij5yh66Yhqb8YU4IePIR4ydZrCKPMFyW1h2JOT44MO3+nqlgm9cdOrZwrIiFE7UxFo P4m79UH+2aosYqQYEiUj37GQs/1t6wvGx17pYkqlTBBwtyYvqrPRUNk/gHOwF4Dy0VIC /FaA== X-Received: by 10.194.206.67 with SMTP id lm3mr18696329wjc.70.1407352716025; Wed, 06 Aug 2014 12:18:36 -0700 (PDT) Received: from localhost.localdomain (mut38-h01-31-33-249-220.dsl.sta.abo.bbox.fr. [31.33.249.220]) by mx.google.com with ESMTPSA id b9sm21033538wic.23.2014.08.06.12.18.34 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 06 Aug 2014 12:18:35 -0700 (PDT) From: Yann Diorcet To: dev@oe-lite.org Subject: [PATCH 13/18] libffi: Windows support Date: Wed, 6 Aug 2014 21:17:59 +0200 Message-Id: <1407352684-7837-13-git-send-email-diorcet.yann@gmail.com> X-Mailer: git-send-email 2.0.1 In-Reply-To: <1407352684-7837-1-git-send-email-diorcet.yann@gmail.com> References: <1407352684-7837-1-git-send-email-diorcet.yann@gmail.com> X-BeenThere: dev@oe-lite.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: OE-lite development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: dev-bounces@oe-lite.org Errors-To: dev-bounces@oe-lite.org --- recipes/libffi/libffi-3.0.13/mingw.patch | 19 +++++++++++++++++++ recipes/libffi/libffi.inc | 1 + recipes/libffi/libffi_3.0.13.oe | 1 + 3 files changed, 21 insertions(+) create mode 100644 recipes/libffi/libffi-3.0.13/mingw.patch diff --git a/recipes/libffi/libffi-3.0.13/mingw.patch b/recipes/libffi/libffi-3.0.13/mingw.patch new file mode 100644 index 0000000..4465b3d --- /dev/null +++ b/recipes/libffi/libffi-3.0.13/mingw.patch @@ -0,0 +1,19 @@ +diff -urN a/configure.ac b/configure.ac +--- a/configure.ac 2013-03-17 23:36:15.000000000 +0100 ++++ b/configure.ac 2014-07-29 22:50:54.650396361 +0200 +@@ -124,15 +124,6 @@ + ;; + i?86-win32* | i?86-*-cygwin* | i?86-*-mingw* | i?86-*-os2* | i?86-*-interix*) + TARGET=X86_WIN32; TARGETDIR=x86 +- # All mingw/cygwin/win32 builds require -no-undefined for sharedlib. +- # We must also check with_cross_host to decide if this is a native +- # or cross-build and select where to install dlls appropriately. +- if test -n "$with_cross_host" && +- test x"$with_cross_host" != x"no"; then +- AM_LTLDFLAGS='-no-undefined -bindir "$(toolexeclibdir)"'; +- else +- AM_LTLDFLAGS='-no-undefined -bindir "$(bindir)"'; +- fi + ;; + i?86-*-darwin*) + TARGET=X86_DARWIN; TARGETDIR=x86 diff --git a/recipes/libffi/libffi.inc b/recipes/libffi/libffi.inc index 9ad233c..8fd5650 100644 --- a/recipes/libffi/libffi.inc +++ b/recipes/libffi/libffi.inc @@ -10,6 +10,7 @@ language. The libffi library really only provides the lowest, machine dependent layer of a fully featured foreign function interface. A layer must exist above libffi that handles type conversions for values passed between the two languages.""" +LICENSE = "MIT" RECIPE_TYPES = "machine native sdk" diff --git a/recipes/libffi/libffi_3.0.13.oe b/recipes/libffi/libffi_3.0.13.oe index 8f0859f..7edab55 100644 --- a/recipes/libffi/libffi_3.0.13.oe +++ b/recipes/libffi/libffi_3.0.13.oe @@ -5,5 +5,6 @@ LICENSE = "MIT" SRC_URI += "file://ax_enable_builddir.patch" SRC_URI += "file://configure-no-multiosdir.patch" +SRC_URI += "file://mingw.patch" LIBRARY_VERSION = "6"