diff mbox

[13/18] libffi: Windows support

Message ID 1407352684-7837-13-git-send-email-diorcet.yann@gmail.com
State Rejected
Delegated to: Kim
Headers show

Commit Message

Yann Diorcet Aug. 6, 2014, 7:17 p.m. UTC
---
 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 mbox

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"