This is the mail archive of the libffi-discuss@sourceware.org mailing list for the libffi project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Use $CFLAGS to calculate multi_os_directory in configure.ac.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]