This is the mail archive of the
libffi-discuss@sourceware.org
mailing list for the libffi project.
Re: Headers installation into libdir?
On 07/03/2010 07:26 PM, Luis Lavena wrote:
> Hello,
>
> I was wondering why libffi 3.0.9 and current master (in GitHub) both
> install ffi.h and ffitarget.h into libdir/libffi-X.Y.Z/include
> directory?
>
> I believe that specific behavior is not good for packagers or users
> trying to install libffi for normal usage.
>
> Please find attached a patch against master that corrects this behavior.
>
> Thank you.
It's because the headers are archtype specific, libdir is the correct
place for them, use pkg-config in your projects, like `pkg-config
--cflags libffi` to get the include dir
(btw, I also replied to you off-list before this reply by accident)