From f33bcd6c504ba241a85f18b3f9826754d1ec42ac Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 6 Aug 2009 07:53:41 -0400 Subject: [PATCH] Teach FortranCInterface about g77 mangling The old GNU g77 Fortran compiler uses the suffix '__' for symbols containing an underscore in their name. --- Modules/FortranCInterface/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Modules/FortranCInterface/CMakeLists.txt b/Modules/FortranCInterface/CMakeLists.txt index a1a6b4642..a0323de00 100644 --- a/Modules/FortranCInterface/CMakeLists.txt +++ b/Modules/FortranCInterface/CMakeLists.txt @@ -13,6 +13,7 @@ int main() { return 0; } set(global_symbols my_sub # VisualAge my_sub_ # GNU, Intel, HP, SunPro, MIPSpro + my_sub__ # GNU g77 mysub # VisualAge mysub_ # GNU, Intel, HP, SunPro, MIPSpro ${FortranCInterface_GLOBAL_SYMBOLS}