Package: metview / 5.10.2-1

fpic.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Author: Alastair McKinstry <mckinstry@debian.org>
Description: Add FPIC support
 Different architectures may need -fpic/-fPIC to compile correctly. Allow
 ecbuild to accept FPIC as a CMAKE variable.
Last-Updated: 2015-11-09
Forwarded: no

Index: metview-5.10.0/metview/CMakeLists.txt
===================================================================
--- metview-5.10.0.orig/metview/CMakeLists.txt
+++ metview-5.10.0/metview/CMakeLists.txt
@@ -654,6 +654,10 @@ endif()
 # compiler-specific options
 # -------------------------
 
+ecbuild_add_cxx_flags("${FPIC}")
+ecbuild_add_c_flags("${FPIC}")
+ecbuild_add_fortran_flags("${FPIC}")
+
 if     (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" )
     ecbuild_add_cxx_flags("-fpermissive -Wno-write-strings -Wno-deprecated -Werror=return-type")
 elseif (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" )