2015-09-19 23:15:01 +02:00
|
|
|
From 580f46a7bc6e9fea3a2227b5268cc3aed1d60e3b Mon Sep 17 00:00:00 2001
|
2013-02-07 12:59:09 +01:00
|
|
|
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
|
|
|
Date: Thu, 7 Feb 2013 22:26:56 +0100
|
|
|
|
Subject: [PATCH] Fix installation location of libffi
|
2015-09-19 23:15:01 +02:00
|
|
|
MIME-Version: 1.0
|
|
|
|
Content-Type: text/plain; charset=UTF-8
|
|
|
|
Content-Transfer-Encoding: 8bit
|
2013-02-07 12:59:09 +01:00
|
|
|
|
|
|
|
The libffi is currently declared as toolexeclib_LTLIBRARIES. In many
|
|
|
|
cases, toolexeclib libraries will be installed in /usr/lib, so it
|
|
|
|
doesn't make any difference.
|
|
|
|
|
|
|
|
However, with multilib toolchains, they get installed in a
|
|
|
|
subdirectory of /usr/lib/. For example, with a Sourcery CodeBench
|
|
|
|
PowerPC toolchain, if the e500mc multilib variant is used, the libffi
|
|
|
|
library gets installed in /usr/lib/te500mc/. This is due to the
|
|
|
|
following code in the configure script:
|
|
|
|
|
|
|
|
multi_os_directory=`$CC -print-multi-os-directory`
|
|
|
|
case $multi_os_directory in
|
|
|
|
.) ;; # Avoid trailing /.
|
|
|
|
*) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
Once the library is installed in /usr/lib/te500mc/, nothing works
|
|
|
|
because this installation location is inconsistent with the
|
|
|
|
installation location declared in libffi.pc.
|
|
|
|
|
|
|
|
So, instead of using this bizarre toolexeclib_LTLIBRARIES, simply use
|
|
|
|
the more standard lib_LTLIBRARIES, which ensures that the libffi
|
|
|
|
library is always installed in /usr/lib.
|
|
|
|
|
|
|
|
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
2015-09-19 23:15:01 +02:00
|
|
|
[unfuzz for 3.2.1]
|
|
|
|
Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
|
2013-02-07 12:59:09 +01:00
|
|
|
---
|
2015-09-19 23:15:01 +02:00
|
|
|
Makefile.am | 2 +-
|
2013-02-07 12:59:09 +01:00
|
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
|
|
|
|
diff --git a/Makefile.am b/Makefile.am
|
2015-09-19 23:15:01 +02:00
|
|
|
index 0e40451..309474c 100644
|
2013-02-07 12:59:09 +01:00
|
|
|
--- a/Makefile.am
|
|
|
|
+++ b/Makefile.am
|
2015-09-19 23:15:01 +02:00
|
|
|
@@ -104,7 +104,7 @@ FLAGS_TO_PASS = $(AM_MAKEFLAGS)
|
2013-02-07 12:59:09 +01:00
|
|
|
|
|
|
|
MAKEOVERRIDES=
|
|
|
|
|
|
|
|
-toolexeclib_LTLIBRARIES = libffi.la
|
|
|
|
+lib_LTLIBRARIES = libffi.la
|
|
|
|
noinst_LTLIBRARIES = libffi_convenience.la
|
|
|
|
|
|
|
|
libffi_la_SOURCES = src/prep_cif.c src/types.c \
|
|
|
|
--
|
2015-09-19 23:15:01 +02:00
|
|
|
2.5.3
|
2013-02-07 12:59:09 +01:00
|
|
|
|