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.
Этот коммит содержится в:
родитель
477828159e
Коммит
0a8af62c64
@ -37,6 +37,7 @@
|
|||||||
#include <sys/wait.h>
|
#include <sys/wait.h>
|
||||||
#endif /* HAVE_SYS_WAIT_H */
|
#endif /* HAVE_SYS_WAIT_H */
|
||||||
|
|
||||||
|
#include "opal/runtime/opal.h"
|
||||||
#include "opal/event/event.h"
|
#include "opal/event/event.h"
|
||||||
#include "opal/mca/base/base.h"
|
#include "opal/mca/base/base.h"
|
||||||
#include "opal/threads/condition.h"
|
#include "opal/threads/condition.h"
|
||||||
@ -187,8 +188,8 @@ int main(int argc, char *argv[])
|
|||||||
orteboot_globals.exit = false;
|
orteboot_globals.exit = false;
|
||||||
orteboot_globals.debug = false;
|
orteboot_globals.debug = false;
|
||||||
|
|
||||||
/* Setup MCA params */
|
/* initialize opal layer */
|
||||||
mca_base_param_init();
|
opal_init_util();
|
||||||
|
|
||||||
/* find our basename (the name of the executable) so that we can
|
/* find our basename (the name of the executable) so that we can
|
||||||
* use it in pretty-print error messages
|
* use it in pretty-print error messages
|
||||||
@ -309,6 +310,7 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
|
|
||||||
free(orteboot_basename);
|
free(orteboot_basename);
|
||||||
|
opal_finalize_util();
|
||||||
return ORTE_SUCCESS;
|
return ORTE_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user