diff options
author | Iain Sandoe <iain@sandoe.co.uk> | 2020-11-21 09:06:03 +0000 |
---|---|---|
committer | Iain Sandoe <iain@sandoe.co.uk> | 2020-11-21 09:06:49 +0000 |
commit | a3454130760bf51b76495663c60ac6dffbe3d130 (patch) | |
tree | 6f06e18749d5fbc839dce36eed3983286fec18a1 /gcc/cp/error.c | |
parent | 93f1186f7d3419c7af692295bd509d7bfaf170a1 (diff) | |
download | gcc-a3454130760bf51b76495663c60ac6dffbe3d130.zip gcc-a3454130760bf51b76495663c60ac6dffbe3d130.tar.gz gcc-a3454130760bf51b76495663c60ac6dffbe3d130.tar.bz2 |
Darwin, libgfortran : Do not use environ directly from the library.
On macOS / Darwin, the environ variable can be used directly in the
code of an executable, but cannot be used in the code of a shared
library (i.e. libgfortran.dylib), in this case.
In such cases, the function _NSGetEnviron should be called to get
the address of 'environ'.
libgfortran/ChangeLog:
* intrinsics/execute_command_line.c (environ): Use
_NSGetEnviron to get the environment pointer on Darwin.
Diffstat (limited to 'gcc/cp/error.c')
0 files changed, 0 insertions, 0 deletions