crosstool-ng/config/companion_libs/ppl.in
Yann E. MORIN" 784d534d28 cc/gcc: fix linking with static PPL 0.11+
PPL 0.11+ installs three libs: lippl, libppl_c and libpwl.
libppl_c has a dependency on libpwl (at least for watchdog stuff).

While gcc correctly links with libppl and libppl_c, it does not
pull libpwl in. In case of shared libs, this is not a problem, as
libppl_c has a NEEDED dependency on libpwl. But for static libs,
that does not work. Although libppl_c.la exists and has a correct
dependency on lipwl, somehow gcc misses it. So we have to force
pulling libpwl when needed.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-03-28 01:07:31 +02:00

51 lines
933 B
Plaintext

# PPL options
choice
bool
prompt "PPL version"
# Don't remove next line
# CT_INSERT_VERSION_BELOW
config PPL_V_0_11_2
bool
prompt "0.11.2 (EXPERIMENTAL)"
depends on EXPERIMENTAL
select PPL_0_11
config PPL_V_0_11_1
bool
prompt "0.11.1 (EXPERIMENTAL)"
depends on EXPERIMENTAL
select PPL_0_11
config PPL_V_0_11
bool
prompt "0.11 (EXPERIMENTAL)"
depends on EXPERIMENTAL
select PPL_0_11
config PPL_V_0_10_2
bool
prompt "0.10.2"
endchoice
config PPL_VERSION
string
# Don't remove next line
# CT_INSERT_VERSION_STRING_BELOW
default "0.11.2" if PPL_V_0_11_2
default "0.11.1" if PPL_V_0_11_1
default "0.11" if PPL_V_0_11
default "0.10.2" if PPL_V_0_10_2
# For PPL 0.11, we need to pull libpwl if configured static
config PPL_0_11
bool
default n
select PPL_NEEDS_LIBPWL if ! COMPLIBS_SHARED
config PPL_NEEDS_LIBPWL
bool
default n