mirror of
https://github.com/reactos/CMake.git
synced 2024-12-15 15:48:52 +00:00
21faaa5d7f
PathScale Fortran mangles module symbols as "MYSUB.in.MYMODULE" and also requires "mymodule_" when the module is imported. We cannot provide the symbol with ".in." mangling so we should not provide "mymodule_" because it would duplicate the one in the Fortran-provided object file.
9 lines
309 B
C
9 lines
309 B
C
#if defined(__PATHSCALE__)
|
|
/* PathScale Fortran wants mymodule_ when calling any mymodule symbol,
|
|
but module symbols use '.in.' so we cannot provide them anyway. */
|
|
void pathscale_mymodule_(void) {}
|
|
#else
|
|
/* PGI Fortran wants mymodule_ when calling any mymodule symbol. */
|
|
void mymodule_(void) {}
|
|
#endif
|