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 15:02:47 +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> <531477A9 dot 5010007 at gentoo dot org> <5314783D dot 6090401 at gentoo dot org> <20140303125625 dot GA18044 at linux dot vnet dot ibm dot com>
On 03/03/14 14:56, Dominik Vogt wrote:
> While we're talking about installations paths: "make istall"
> should really install ffi.h to <prefix>/include/libffi... and not
> to <prefix>/lib/libffi.../include. It doen't respect --installdir=
> either.
>
> Ciao
>
> Dominik ^_^ ^_^
>
The headers are arch specific and belong to libdir. The use of
pkg-config is mandatory:
<snip>
$ grep include /usr/lib/pkgconfig/libffi.pc
includedir=${libdir}/libffi-3.0.13/include
Cflags: -I${includedir}
$ pkg-config --cflags-only-I libffi
-I/usr/lib64/libffi-3.0.13/include
$ diff -ur /usr/lib32/libffi-3.0.13 /usr/lib64/libffi-3.0.13
diff -ur /usr/lib32/libffi-3.0.13/include/ffi.h
/usr/lib64/libffi-3.0.13/include/ffi.h
--- /usr/lib32/libffi-3.0.13/include/ffi.h 2013-10-19
16:20:31.091611936 +0300
+++ /usr/lib64/libffi-3.0.13/include/ffi.h 2013-10-19
16:20:31.239611933 +0300
@@ -58,8 +58,8 @@
#endif
/* Specify which architecture libffi is configured for. */
-#ifndef X86
-#define X86
+#ifndef X86_64
+#define X86_64
#endif
/* ---- System configuration information
--------------------------------- */
</snip>
I'm sorry but this has been discussed in this very ML many times
already, I'm just pointing
the conclusion.
- Samuli