[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
inputs vs. native-inputs vs. propagated-inputs
From: |
Hartmut Goebel |
Subject: |
inputs vs. native-inputs vs. propagated-inputs |
Date: |
Sun, 12 Jun 2016 11:07:18 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 |
Hi,
I'm a bit confused about the difference between inputs, native-inputs
and propagated-inputs.
The manual states:
The distinction between ‘native-inputs’ and ‘inputs’ is
necessary when considering cross-compilation. When
cross-compiling, dependencies listed in ‘inputs’ are built for
the _target_ architecture; conversely, dependencies listed in
‘native-inputs’ are built for the architecture of the _build_
machine.
For for I understand. But then the manual says:
‘native-inputs’ is typically used to list tools needed at
build time, but not at run time, such as Autoconf, Automake,
pkg-config, Gettext, or Bison.
The first sentence implies that "inputs" are treated as needed at run time.
Now consider libAAA (supporting the famous Amiga AAA chipset ;-), which
requires the headers of libBBB to compile (but only to fetch some
constant definitions) and libCCC at run-time. Without libCCC, libAAA
could not work. And libAAA uses pkg-config to find the header files.
So for me this would be:
libBBB: inputs
libCCC: propagates inputs
pkg-confg: native inputs
Is this correct?
If so, how can I as a packager find out if eg. libBBB is only used at
build time and libCCC need to be a propagated input?
Same for pkg-config: How to determine if this is only needed ar build
time (as I would always expect)? The manual says:
… propagated-inputs …
For example this is necessary when a C/C++ library needs
headers of another library to compile, or when a pkg-config
file refers to another one via its ‘Requires’ field.
For me this is confusing.
--
Regards
Hartmut Goebel
| Hartmut Goebel | address@hidden |
| www.crazy-compilers.com | compilers which you thought are impossible |
- inputs vs. native-inputs vs. propagated-inputs,
Hartmut Goebel <=
- Re: inputs vs. native-inputs vs. propagated-inputs, 宋文武, 2016/06/12
- Re: inputs vs. native-inputs vs. propagated-inputs, Hartmut Goebel, 2016/06/12
- Re: inputs vs. native-inputs vs. propagated-inputs, Leo Famulari, 2016/06/12
- Re: inputs vs. native-inputs vs. propagated-inputs, Hartmut Goebel, 2016/06/17
- Re: inputs vs. native-inputs vs. propagated-inputs, Leo Famulari, 2016/06/17
- Re: inputs vs. native-inputs vs. propagated-inputs, Ludovic Courtès, 2016/06/18
- Re: inputs vs. native-inputs vs. propagated-inputs, Lukas Gradl, 2016/06/19
- Re: inputs vs. native-inputs vs. propagated-inputs, Ludovic Courtès, 2016/06/19
- Re: inputs vs. native-inputs vs. propagated-inputs, Lukas Gradl, 2016/06/21