Skip to content

Implement --enable-static-runtime configure option. #818

@gpaulsen

Description

@gpaulsen

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.

  1. 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).
  2. 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
fi

Assuming $(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
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions