From 0a8af62c64654543a972042cbc03c0c460e26f4e Mon Sep 17 00:00:00 2001 From: Brian Barrett Date: Mon, 23 Apr 2007 15:45:39 +0000 Subject: [PATCH] Fix broken build on OS X with static compiles. Everything that uses anything in OPAL *MUST* call either opal_init() or opal_init_util(). This commit was SVN r14468. --- orte/tools/orteboot/orteboot.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/orte/tools/orteboot/orteboot.c b/orte/tools/orteboot/orteboot.c index a768021447..50e83da41c 100644 --- a/orte/tools/orteboot/orteboot.c +++ b/orte/tools/orteboot/orteboot.c @@ -37,6 +37,7 @@ #include #endif /* HAVE_SYS_WAIT_H */ +#include "opal/runtime/opal.h" #include "opal/event/event.h" #include "opal/mca/base/base.h" #include "opal/threads/condition.h" @@ -187,8 +188,8 @@ int main(int argc, char *argv[]) orteboot_globals.exit = false; orteboot_globals.debug = false; - /* Setup MCA params */ - mca_base_param_init(); + /* initialize opal layer */ + opal_init_util(); /* find our basename (the name of the executable) so that we can * use it in pretty-print error messages @@ -309,6 +310,7 @@ int main(int argc, char *argv[]) free(orteboot_basename); + opal_finalize_util(); return ORTE_SUCCESS; }