I am compiling a library for a private project, which depends on a number of libraries. In particular, one of the dependencies is compiled using Fortran. In some cases, I saw a dependency compiled with g77 ; on others that I saw, it was compiled with gfortran . My project then ./configure 'd to communicate with -lg2c or -lgfortran , but so far I have done this manually.
If possible, how can I find out by looking at a dependent library (e.g. nm or some other utility?), Was the g77 compiler used (and then I will use -lg2c in my link options) or gfortran (and then I will -lgfortran use -lgfortran )?
Thanks in advance!
gfortran g77
jbatista
source share