summaryrefslogtreecommitdiff
path: root/dev-scheme/c-wrapper/files/c-wrapper-system-libffi.patch
diff options
context:
space:
mode:
authorAkinori Hattori <hattya@gentoo.org>2018-07-11 23:27:58 +0900
committerAkinori Hattori <hattya@gentoo.org>2018-07-11 23:39:28 +0900
commit89570e7adc06af18dc3a80d4c50ce16e2fa5568b (patch)
treebeeabf9d86e259fc028defd15b708e19bd4609ee /dev-scheme/c-wrapper/files/c-wrapper-system-libffi.patch
parenteb059d256e6cbbdfd0bfeb3e2307f83196b31865 (diff)
downloadgentoo-89570e7adc06af18dc3a80d4c50ce16e2fa5568b.tar.gz
gentoo-89570e7adc06af18dc3a80d4c50ce16e2fa5568b.tar.bz2
gentoo-89570e7adc06af18dc3a80d4c50ce16e2fa5568b.zip
dev-scheme/c-wrapper: update patch
Package-Manager: Portage-2.3.40, Repoman-2.3.9
Diffstat (limited to 'dev-scheme/c-wrapper/files/c-wrapper-system-libffi.patch')
-rw-r--r--dev-scheme/c-wrapper/files/c-wrapper-system-libffi.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/dev-scheme/c-wrapper/files/c-wrapper-system-libffi.patch b/dev-scheme/c-wrapper/files/c-wrapper-system-libffi.patch
new file mode 100644
index 000000000000..7f79f642cd06
--- /dev/null
+++ b/dev-scheme/c-wrapper/files/c-wrapper-system-libffi.patch
@@ -0,0 +1,33 @@
+--- a/configure.ac
++++ b/configure.ac
+@@ -53,6 +53,7 @@
+
+ dnl Check for libraries
+ dnl Add your macro calls to check required libraries, if you have any.
++PKG_CHECK_MODULES([FFI], [libffi])
+
+ dnl Platform-dependent configuration.
+ AC_ARG_ENABLE(objc, [ --enable-objc turn on Objective-C support])
+--- a/src/Makefile.in
++++ b/src/Makefile.in
+@@ -20,9 +20,9 @@
+ GAUCHE_PACKAGE = @GAUCHE_PACKAGE@
+ INSTALL = @GAUCHE_INSTALL@
+
+-CPPFLAGS = -I./libffi/include -DGAUCHE_API_0_8_8 @CPPFLAGS@
++CPPFLAGS = -DGAUCHE_API_0_8_8 @FFI_CFLAGS@ @CPPFLAGS@
+ LDFLAGS = @LDFLAGS@
+-LIBS = libffi/.libs/libffi.a @LIBS@
++LIBS = @FFI_LIBS@ @LIBS@
+
+ YACC = @YACC@
+
+@@ -38,7 +38,7 @@
+ SCMFILES =
+ HEADERS =
+
+-TARGET = libffi/.libs/libffi.a $(ARCHFILES)
++TARGET = $(ARCHFILES)
+ GENERATED = libffi
+ CONFIG_GENERATED = libffi/Makefile Makefile cwcompile
+