-
Notifications
You must be signed in to change notification settings - Fork 936
Closed
Description
From #729:
Jeff Squyres recommend this approach to solve this type of issue:
I do like the idea of a --enable-static-runtime kind of configure option. This would seem to solve all the problems, and not require the user to know/do anything at runtime.
The only problem is: I'm not entirely sure how to do that.
- With the Intel compiler, there's the
--static-inteloption, but that doesn't make a wholly staticorted, for example (it just statically links in the Intel libraries -- not all libraries). - Are there universal options for this for the other compilers?
...after thinking about this for a few minutes, it may be sufficient to do something like this:
if enable_static_runtime was passed
RUNTIME_LDFLAGS=--static
if compiler suite is intel
RUNTIME_LDFLAGS="$RUNTIME_LDFLAGS --static-intel"
fi
fiAssuming $(RUNTIME_LDFLAGS) is used when linking the orted (and any other relevant executables?), Libtool might automatically translate --static into whatever is relevant for the underlying compiler, and we only have one special case for the Intel compiler suite.
Metadata
Metadata
Assignees
Labels
No labels