diff options
author | Laurence Kedward <laurence.kedward@bristol.ac.uk> | 2021-11-02 09:08:34 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-02 09:08:34 +0000 |
commit | 02fdf8dde8877cf2ac738fed8d20561da16cec1f (patch) | |
tree | ae191f46244238ef584742bfb22dd674d10abd3e | |
parent | 7247d5a2d07ff40b9e5e6ac51d8a6be91b23bfd8 (diff) | |
parent | 9622e5988ac879de5de35af69a188084ca01da8a (diff) | |
download | fpm-02fdf8dde8877cf2ac738fed8d20561da16cec1f.tar.gz fpm-02fdf8dde8877cf2ac738fed8d20561da16cec1f.zip |
Merge pull request #598 from fortran-lang/update-readme
Update README.md compiler, archiver, & link flags
-rw-r--r-- | README.md | 14 |
1 files changed, 12 insertions, 2 deletions
@@ -159,5 +159,15 @@ To automatically bootstrap using this appoach run the install script ./install.sh ``` -You can set your Fortran compiler and the compiler flags with the ``FC`` and ``FFLAGS`` -environment variables. +The table below lists the environment variables that control `fpm`'s choice of compilers, +compiler flags, archiver locations, and link flags, each of which can be overridden by +passing `fpm` flags also shown in the table. + +| Environment Variable | Defines | Overridden by | +| :------------------- | :-------------------- | :------------- | +| `FPM_FC` | Fortran compiler path | `--compiler` | +| `FPM_CC` | C compiler path | `--c-compiler` | +| `FPM_FFLAGS` | Fortran compiler flags| `--flag` | +| `FPM_CFLAGS` | C compiler flags | `--c-flag` | +| `FPM_AR` | Archiver path | `--archiver` | +| `FPM_LDFLAGS` | Link flags | `--link-flag` | |