configure --cross=cray* ignores --with-cc/--with-cxx
One of the design purposes of configure --with-cc=X --with-cxx=Y
is to force the use of a particular compiler. However upcxx/configure assumes it can always accomplish this via the environment and strips these args from the subordinate configure command line.
This works fine until you add a --cross
cross-configure script, which overwrites the environment, thus completely wiping out the effect of the top-level configure option.
The same defect affects CC and CXX explicitly provided in the configure environment (in the absence of --with-cc/--with-cxx
) when cross-configuring.
Comments (3)
-
reporter -
- changed status to open
Proposed solution in pull request 195
-
- changed status to resolved
makefile: CC and CXX on GASNet configure cmdline
This commit resolves issue 346 by passing the CC and CXX values to GASNet's configure command as explicit arguments, rather than in the environment.
→ <<cset 43b610040b9f>>
- Log in to comment
Workaround is to set envvar
GASNET_CONFIGURE_ARGS='--with-cc=X --with-cxx=Y'