I need help compiling old legacy fortran with g77 :
(1) The system on OS X 10.12.6, XCode 9.2, and g77 -v returns "Reading specs from /usr/local/lib/gcc/i686-apple-darwin8.8.1/3.4.0/specs Configured with: ../gcc-3.4.0/configure --enable-languages=f77 Thread model: posix gcc version 3.4.0)"
(2) When compiling with a number of legacy flags : "g77 -ffixed-line-length-132 -fbounds-check -fvxt -ftypeless-boz -finit-local-zero -fno-automatic *.f -o a.out" I get these linker warnings :
- "ld: warning: -macosx_version_min not specified, assuming 10.6"
- "ld: warning: object file (/var/folders/6t/mmq9jmq88xjfvk0059b07_yh0000gn/T//ccBEadOC.o) was built for newer OSX version (10.12) than being linked (10.6)"
I think the solution is to set macosx_version_min to 10.12.6 but do not know how to do this.
All help gratefully received : the problem arose when I did a macports update which broke things which were working fine under 10.12.6 yesterday, albeit with the warning "ld: warning: -macosx_version_min not specified, assuming 10.6". The same code still compiles and runs just fine on a UNIX server with g77-v reporting "gcc version 3.4.6 20060404 (Red Hat 3.4.6-19.el6)"
I'm hoping there's an answer starting "here's how to specify macox_version_min"
Thank you all !