From c73716c6bec6dabe9f0b748fc89dff14d5ce9f52 Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Wed, 12 Jul 2006 23:11:56 +0000 Subject: [PATCH] Correct extra-libs logic for QNX [SVN r34520] --- v2/tools/python.jam | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/v2/tools/python.jam b/v2/tools/python.jam index 3fcd6b446..534afea0a 100644 --- a/v2/tools/python.jam +++ b/v2/tools/python.jam @@ -131,19 +131,14 @@ rule init-unix ( version ? : root ? : includes ? : libraries ? : condition * ) local extra-libs ; - if [ os.name ] = SOLARIS - { - extra-libs = dl ; - } - else if [ os.name ] = OSF || [ os.name ] = QNXTO - { - # Nothing. - } - else - { - extra-libs = dl util ; - } + switch [ os.name ] + { + case SOLARIS : extra-libs = dl ; + case OSF: extra-libs = ; + case QNXTO: extra-libs = util ; + case *: extra-libs = dl util ; + } # On Linux, we don't want to link either Boost.Python or # Python extensions to libpython, so that when extensions @@ -159,7 +154,7 @@ rule init-unix ( version ? : root ? : includes ? : libraries ? : condition * ) ; alias python - : $(extra-libs) + : $(extra-libs) : $(condition) : : $(includes)