{"action":"created","issue":{"url":"https://api.github.com/repos/open-mpi/ompi/issues/818","labels_url":"https://api.github.com/repos/open-mpi/ompi/issues/818/labels{/name}","comments_url":"https://api.github.com/repos/open-mpi/ompi/issues/818/comments","events_url":"https://api.github.com/repos/open-mpi/ompi/issues/818/events","html_url":"https://github.com/open-mpi/ompi/issues/818","id":101686185,"number":818,"title":"Implement --enable-static-runtime configure option.","user":{"login":"gpaulsen","id":10405509,"avatar_url":"https://avatars.githubusercontent.com/u/10405509?v=3","gravatar_id":"","url":"https://api.github.com/users/gpaulsen","html_url":"https://github.com/gpaulsen","followers_url":"https://api.github.com/users/gpaulsen/followers","following_url":"https://api.github.com/users/gpaulsen/following{/other_user}","gists_url":"https://api.github.com/users/gpaulsen/gists{/gist_id}","starred_url":"https://api.github.com/users/gpaulsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gpaulsen/subscriptions","organizations_url":"https://api.github.com/users/gpaulsen/orgs","repos_url":"https://api.github.com/users/gpaulsen/repos","events_url":"https://api.github.com/users/gpaulsen/events{/privacy}","received_events_url":"https://api.github.com/users/gpaulsen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"gpaulsen","id":10405509,"avatar_url":"https://avatars.githubusercontent.com/u/10405509?v=3","gravatar_id":"","url":"https://api.github.com/users/gpaulsen","html_url":"https://github.com/gpaulsen","followers_url":"https://api.github.com/users/gpaulsen/followers","following_url":"https://api.github.com/users/gpaulsen/following{/other_user}","gists_url":"https://api.github.com/users/gpaulsen/gists{/gist_id}","starred_url":"https://api.github.com/users/gpaulsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gpaulsen/subscriptions","organizations_url":"https://api.github.com/users/gpaulsen/orgs","repos_url":"https://api.github.com/users/gpaulsen/repos","events_url":"https://api.github.com/users/gpaulsen/events{/privacy}","received_events_url":"https://api.github.com/users/gpaulsen/received_events","type":"User","site_admin":false},"milestone":null,"comments":27,"created_at":"2015-08-18T15:43:02Z","updated_at":"2015-09-03T08:29:46Z","closed_at":null,"body":"From #729:\r\n\r\nJeff Squyres recommend this approach to solve this type of issue:\r\n\r\nI 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.\r\n\r\nThe only problem is: I'm not entirely sure how to do that.  \r\n\r\n1. With the Intel compiler, there's the `--static-intel` option, but that doesn't make a wholly static `orted`, for example (it just statically links in the Intel libraries -- not *all* libraries).\r\n1. Are there universal options for this for the other compilers?\r\n\r\n...after thinking about this for a few minutes, it *may* be sufficient to do something like this:\r\n\r\n```shell\r\nif enable_static_runtime was passed\r\n    RUNTIME_LDFLAGS=--static\r\n    if compiler suite is intel\r\n        RUNTIME_LDFLAGS=\"$RUNTIME_LDFLAGS --static-intel\"\r\n    fi\r\nfi\r\n````\r\n\r\nAssuming `$(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."},"comment":{"url":"https://api.github.com/repos/open-mpi/ompi/issues/comments/137378005","html_url":"https://github.com/open-mpi/ompi/issues/818#issuecomment-137378005","issue_url":"https://api.github.com/repos/open-mpi/ompi/issues/818","id":137378005,"user":{"login":"ggouaillardet","id":7233259,"avatar_url":"https://avatars.githubusercontent.com/u/7233259?v=3","gravatar_id":"","url":"https://api.github.com/users/ggouaillardet","html_url":"https://github.com/ggouaillardet","followers_url":"https://api.github.com/users/ggouaillardet/followers","following_url":"https://api.github.com/users/ggouaillardet/following{/other_user}","gists_url":"https://api.github.com/users/ggouaillardet/gists{/gist_id}","starred_url":"https://api.github.com/users/ggouaillardet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ggouaillardet/subscriptions","organizations_url":"https://api.github.com/users/ggouaillardet/orgs","repos_url":"https://api.github.com/users/ggouaillardet/repos","events_url":"https://api.github.com/users/ggouaillardet/events{/privacy}","received_events_url":"https://api.github.com/users/ggouaillardet/received_events","type":"User","site_admin":false},"created_at":"2015-09-03T08:29:45Z","updated_at":"2015-09-03T08:29:45Z","body":"i had no issue with icc 15.0.3 and 16.0.0\r\non top of that, -Wc-,static-intel is not even  passed to the wrappers (!)"}}