summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--patches/01_fix-install-dirs.patch66
1 files changed, 66 insertions, 0 deletions
diff --git a/patches/01_fix-install-dirs.patch b/patches/01_fix-install-dirs.patch
new file mode 100644
index 0000000..ad01230
--- /dev/null
+++ b/patches/01_fix-install-dirs.patch
@@ -0,0 +1,66 @@
+Author: "P. J. McDermott" <pj@pehjota.net>
+Subject: Fix install directories
+
+diff -Naur src.orig/configure src/configure
+--- src.orig/configure 2014-05-19 09:44:03.000000000 -0400
++++ src/configure 2014-06-21 22:48:30.030613752 -0400
+@@ -18792,7 +18792,7 @@
+ toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
+ toolexeclibdir='$(libdir)'
+ fi
+- multi_os_directory=`$CC $CFLAGS -print-multi-os-directory`
++ multi_os_directory=.
+ case $multi_os_directory in
+ .) ;; # Avoid trailing /.
+ ../*) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
+diff -Naur src.orig/configure.ac src/configure.ac
+--- src.orig/configure.ac 2014-05-11 09:57:49.000000000 -0400
++++ src/configure.ac 2014-06-21 22:48:27.786546119 -0400
+@@ -596,7 +596,7 @@
+ toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
+ toolexeclibdir='$(libdir)'
+ fi
+- multi_os_directory=`$CC $CFLAGS -print-multi-os-directory`
++ multi_os_directory=.
+ case $multi_os_directory in
+ .) ;; # Avoid trailing /.
+ ../*) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
+diff -Naur src.orig/include/Makefile.am src/include/Makefile.am
+--- src.orig/include/Makefile.am 2014-04-25 13:45:13.000000000 -0400
++++ src/include/Makefile.am 2014-06-21 22:38:34.828683146 -0400
+@@ -5,5 +5,5 @@
+ DISTCLEANFILES=ffitarget.h
+ EXTRA_DIST=ffi.h.in ffi_common.h
+
+-includesdir = $(libdir)/@PACKAGE_NAME@-@PACKAGE_VERSION@/include
++includesdir = $(includedir)
+ nodist_includes_HEADERS = ffi.h ffitarget.h
+diff -Naur src.orig/include/Makefile.in src/include/Makefile.in
+--- src.orig/include/Makefile.in 2014-05-19 09:44:04.000000000 -0400
++++ src/include/Makefile.in 2014-06-21 22:38:37.180753970 -0400
+@@ -314,7 +314,7 @@
+ AUTOMAKE_OPTIONS = foreign
+ DISTCLEANFILES = ffitarget.h
+ EXTRA_DIST = ffi.h.in ffi_common.h
+-includesdir = $(libdir)/@PACKAGE_NAME@-@PACKAGE_VERSION@/include
++includesdir = $(includedir)
+ nodist_includes_HEADERS = ffi.h ffitarget.h
+ all: all-am
+
+diff -Naur src.orig/libffi.pc.in src/libffi.pc.in
+--- src.orig/libffi.pc.in 2014-04-25 13:45:13.000000000 -0400
++++ src/libffi.pc.in 2014-06-21 22:57:05.594174611 -0400
+@@ -1,11 +1,5 @@
+-prefix=@prefix@
+-exec_prefix=@exec_prefix@
+-libdir=@libdir@
+-toolexeclibdir=@toolexeclibdir@
+-includedir=${libdir}/@PACKAGE_NAME@-@PACKAGE_VERSION@/include
+-
+ Name: @PACKAGE_NAME@
+ Description: Library supporting Foreign Function Interfaces
+ Version: @PACKAGE_VERSION@
+-Libs: -L${toolexeclibdir} -lffi
+-Cflags: -I${includedir}
++Libs: -lffi
++Cflags: