Skip to content

Commit 02fdf8d

Browse files
authored
Merge pull request #598 from fortran-lang/update-readme
Update README.md compiler, archiver, & link flags
2 parents 7247d5a + 9622e59 commit 02fdf8d

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

README.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,5 +159,15 @@ To automatically bootstrap using this appoach run the install script
159159
./install.sh
160160
```
161161

162-
You can set your Fortran compiler and the compiler flags with the ``FC`` and ``FFLAGS``
163-
environment variables.
162+
The table below lists the environment variables that control `fpm`'s choice of compilers,
163+
compiler flags, archiver locations, and link flags, each of which can be overridden by
164+
passing `fpm` flags also shown in the table.
165+
166+
| Environment Variable | Defines | Overridden by |
167+
| :------------------- | :-------------------- | :------------- |
168+
| `FPM_FC` | Fortran compiler path | `--compiler` |
169+
| `FPM_CC` | C compiler path | `--c-compiler` |
170+
| `FPM_FFLAGS` | Fortran compiler flags| `--flag` |
171+
| `FPM_CFLAGS` | C compiler flags | `--c-flag` |
172+
| `FPM_AR` | Archiver path | `--archiver` |
173+
| `FPM_LDFLAGS` | Link flags | `--link-flag` |

0 commit comments

Comments
 (0)