Browse Source

Merge topic 'NAG-Fortran-no-fPIE'

e9c98426 NAG: Use -PIC for Fortran position-independent executable code
Brad King 9 years ago
parent
commit
627ffb4bd7
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")