NAG: Use -PIC for Fortran position-independent executable code
The Numerical Algorithms Group (NAG) Fortran compiler documents -PIC for position-independent code and does not have a separate option for PIE. We added `-PIC` for PIC in commit v2.8.11~174^2 (NAG: Use -PIC for Fortran position-independent code, 2013-02-18). Follow up for PIE. Closes: #16236
This commit is contained in:
parent
4689d16e8a
commit
e9c984267e
|
@ -33,3 +33,4 @@ set(CMAKE_SHARED_LIBRARY_Fortran_FLAGS "-PIC")
|
||||||
set(CMAKE_Fortran_FORMAT_FIXED_FLAG "-fixed")
|
set(CMAKE_Fortran_FORMAT_FIXED_FLAG "-fixed")
|
||||||
set(CMAKE_Fortran_FORMAT_FREE_FLAG "-free")
|
set(CMAKE_Fortran_FORMAT_FREE_FLAG "-free")
|
||||||
set(CMAKE_Fortran_COMPILE_OPTIONS_PIC "-PIC")
|
set(CMAKE_Fortran_COMPILE_OPTIONS_PIC "-PIC")
|
||||||
|
set(CMAKE_Fortran_COMPILE_OPTIONS_PIE "-PIC")
|
||||||
|
|
Loading…
Reference in New Issue