From 784d534d28c55871dacb6d985047a5066ab147c8 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Mon, 28 Mar 2011 01:07:31 +0200 Subject: 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" --- config/companion_libs/ppl.in | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'config') diff --git a/config/companion_libs/ppl.in b/config/companion_libs/ppl.in index 6dbca990..3fe2e6a2 100644 --- a/config/companion_libs/ppl.in +++ b/config/companion_libs/ppl.in @@ -10,16 +10,19 @@ 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 @@ -35,3 +38,13 @@ config PPL_VERSION 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 -- cgit v1.2.3