mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 01:43:15 +00:00
f42aa7e1d7
We need to set FC so that CMake and other tools can find the fortran compiler. Also we need to limit the hardening flags since fortify and format don’t work with fortran. Fixes #88449
12 lines
277 B
Bash
12 lines
277 B
Bash
getTargetRole
|
|
getTargetRoleWrapper
|
|
|
|
export FC${role_post}=@named_fc@
|
|
|
|
# If unset, assume the default hardening flags.
|
|
# These are different for fortran.
|
|
: ${NIX_HARDENING_ENABLE="stackprotector pic strictoverflow relro bindnow"}
|
|
export NIX_HARDENING_ENABLE
|
|
|
|
unset -v role_post
|