public inbox for libffi-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Chi-Hsuan Yen <yan12125@gmail.com>
To: libffi-discuss@sourceware.org
Subject: Install public headers in the standard path?
Date: Tue, 15 Nov 2016 12:10:00 -0000	[thread overview]
Message-ID: <CAMNjDR2e+AfNfPXjA9q3HznyxuOuT=XWDVeZSvxw7C4ePftNmA@mail.gmail.com> (raw)

Hello libffi enthusiasts,

Currently libffi public headers are installed in
$PREFIX/lib/libffi-3.x.y/include. The only reliable approach to get
the include path is via pkg-config. There are some disadvantages:

1. pkg-config is tricky in terms of cross-compilation. To cross-build
libffi clients, PKG_CONFIG_LIBDIR, PKG_CONFIG_SYSROOT_DIR,
PKG_CONFIG_ALLOW_SYSTEM_{CFLAGS,LIBS} may be involved to make it
working

2. pkg-config does not come with macOS. Recently CPython is seeking
for chances to drop bundled libffi copy. [1] However, CPython core
developers are against including additional tools other than
XCode/Command Line Tools in CPython build time requirements

There are some more discussions here:
https://github.com/libffi/libffi/issues/258

As a result, I suggest to move header files to conventional
$PREFIX/include, so that libffi clients can have simpler build
systems.

Here's my implementation: https://github.com/libffi/libffi/pull/288

Any ideas?

Best,

Yen, Chi-Hsuan

[1] http://bugs.python.org/issue28491

             reply	other threads:[~2016-11-15 12:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-15 12:10 Chi-Hsuan Yen [this message]
2017-01-05 23:53 ` Anthony Green
2017-01-06 15:16   ` Chi-Hsuan Yen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAMNjDR2e+AfNfPXjA9q3HznyxuOuT=XWDVeZSvxw7C4ePftNmA@mail.gmail.com' \
    --to=yan12125@gmail.com \
    --cc=libffi-discuss@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).