NickFort
Technical User
- Jun 10, 2010
- 113
I want to set the option --enable-auto-import for ld, just to get ld to shut up with its "info"; it typically says: "warning: auto-importing has been activated without --enable-auto-import specified on the command line". It's this warning that I want to suppress.
However, gfortran automatically calls ld; how would I specify command line options for ld through gfortran? I've tried compiling with the option --enable-auto-import, but gfortran gave me "unrecognized command line option". If I include --enable-auto-import along with the -shared option (which is the context in which --enable-auto-import is used), it doesn't complain, but it still gives me the above warning.
Thoughts?
--------------------------------------
Background: Chemical engineer, familiar mostly with MATLAB, but now branching out into real programming.
However, gfortran automatically calls ld; how would I specify command line options for ld through gfortran? I've tried compiling with the option --enable-auto-import, but gfortran gave me "unrecognized command line option". If I include --enable-auto-import along with the -shared option (which is the context in which --enable-auto-import is used), it doesn't complain, but it still gives me the above warning.
Thoughts?
--------------------------------------
Background: Chemical engineer, familiar mostly with MATLAB, but now branching out into real programming.