This is the mail archive of the
libffi-discuss@sourceware.org
mailing list for the libffi project.
Re: [PATCH] Use $CFLAGS to calculate multi_os_directory in configure.ac.
- From: Samuli Suominen <ssuominen at gentoo dot org>
- To: libffi-discuss at sourceware dot org
- Date: Mon, 03 Mar 2014 14:38:01 +0200
- Subject: Re: [PATCH] Use $CFLAGS to calculate multi_os_directory in configure.ac.
- Authentication-results: sourceware.org; auth=none
- References: <20140303123619 dot GA7627 at linux dot vnet dot ibm dot com>
On 03/03/14 14:36, Dominik Vogt wrote:
> configure.ac forgets to use $CFLAGS when running
>
> $CC -print-multi-os-directory
>
> This may result in a bad installation path for the library (on
> s390 I get ..../lib/../lib64 instead of just ..../lib" as it should
> be). The attached patch fixes that (configure needs to be
> regenerated.)
>
> Ciao
>
> Dominik ^_^ ^_^
>
Since we are on the /topic of -print-multi-os-directory and it's use in
libffi, I'd like to point out the concept is broken:
http://bugs.gentoo.org/show_bug.cgi?id=462814
It's in direct conflict with the use of --libdir= and is not flexible
enough to be used in packages like this.
What really should be done, is revert the patch that ever introduced the
use of -print-multi-os-directory for determining
the installation directory, or at the very least, force it to respect
--libdir=, not override --libdir=
- Samuli