summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2011-03-27 23:07:31 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2011-03-27 23:07:31 (GMT)
commit784d534d28c55871dacb6d985047a5066ab147c8 (patch)
tree5a5dda6230f94b753a8842bc4f150d8e9e74cd6b /config
parent99d7ec8a842648a3cfc4d7760954ec3ee3d473f5 (diff)
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>
Diffstat (limited to 'config')
-rw-r--r--config/companion_libs/ppl.in13
1 files changed, 13 insertions, 0 deletions
diff --git a/config/companion_libs/ppl.in b/config/companion_libs/ppl.in
index 6dbca99..3fe2e6a 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