Opened 13 years ago

Closed 13 years ago

#60 closed task (worksforme)

compiler flags for compile_f2c

Reported by: stefan Owned by: andreasw
Priority: minor Component: configuration tests
Version: 0.5 Keywords:



when I do an optimized build with cl then the compiler flags for cl are set to include -MT, thus the objects want to be linked against LIBCMT.lib.

When I also use compile_f2c to build the fortran code, then this script also calls cl, but without setting extra flags, thus the objects from fortran code want to be linked against LIBC.lib.

Hopefully this will just result in warnings, but it's also a potential cause for problems. A workaround is to specify FFLAGS="-MT" on the command line, but maybe it is possible to improve the build system in the way that it does something like FFLAGS=$CFLAGS in case F77=compile_f2c?

Best, Stefan

Change History (2)

comment:1 Changed 13 years ago by stefan

Sorry, my mistake. I made clean checkouts and rebuilds and now everything seem to work fine. compile_f2c seem to use appropriate flags automatically.

comment:2 Changed 13 years ago by andreasw

  • Resolution set to worksforme
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.