The Intel® Fortran compiler lets you specify alternative tool locations and tool options to be used instead of default tools for preprocessing, compilation, assembly, and linking. You can use command-line options to do this.
-Qlocation lets you specify the pathname location of a supporting preprocessor, compiler, assembler, or linker. This option's syntax is:
-Qlocation,tool,path
where tool is:
fpp Intel Fortran preprocessor (fpp)
f Intel Fortran compiler (fortcom)
c Intel C compiler
as Assembler
link Linker
and path is the location of the tool.
Example:
ifort -Qlocation,fpp,/usr/preproc myprog.f
-Qoption lets you pass options to the preprocessor, compiler, assembler, or linker. This option's syntax is:
-Qoption,tool,options
where tool is:
fpp Intel Fortran preprocessor (fpp)
f Intel Fortran compiler (fortcom)
c Intel C compiler
as Assembler
link Linker
and options is one or more valid argument strings for the designated tool.
If the argument contains a space or tab character, you must enclose the entire argument in quotation marks (" "). You must separate multiple arguments with commas.
The following example directs the linker to link with an alternative library:
ifort -Qoption,link,-lmylib prog1.f