This is the mail archive of the
libffi-discuss@sourceware.org
mailing list for the libffi project.
Re: [PATCH] Fix installation localtion of libffi
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Thomas Petazzoni <thomas dot petazzoni at free-electrons dot com>
- Cc: libffi-discuss at sourceware dot org
- Date: Thu, 7 Feb 2013 22:40:33 +0100
- Subject: Re: [PATCH] Fix installation localtion of libffi
- References: <1360272691-12554-1-git-send-email-thomas.petazzoni@free-electrons.com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Thu, Feb 07, 2013 at 10:31:31PM +0100, Thomas Petazzoni wrote:
> 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.
There is nothing bizzare on it, of course you want to install say
on x86_64 the 64-bit library into /usr/lib64/ directory where the dynamic
linker will find it, not into /usr/lib/ where it is looking for 32-bit
libraries, etc.
So this change is wrong.
Jakub