Browse Source

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
Neil Carlson 9 years ago
parent
commit
e9c984267e
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Modules/Compiler/NAG-Fortran.cmake

+ 1 - 0
Modules/Compiler/NAG-Fortran.cmake

@@ -33,3 +33,4 @@ set(CMAKE_SHARED_LIBRARY_Fortran_FLAGS "-PIC")
 set(CMAKE_Fortran_FORMAT_FIXED_FLAG "-fixed")
 set(CMAKE_Fortran_FORMAT_FREE_FLAG "-free")
 set(CMAKE_Fortran_COMPILE_OPTIONS_PIC "-PIC")
+set(CMAKE_Fortran_COMPILE_OPTIONS_PIE "-PIC")