[cig-commits] [commit] master: Adding the PIC flag needed for relax shared library. (570a8ae)

cig_noreply at geodynamics.org cig_noreply at geodynamics.org
Fri Jan 30 20:16:33 PST 2015


Repository : https://github.com/geodynamics/relax

On branch  : master
Link       : https://github.com/geodynamics/relax/compare/7338c32a4753447c8df77940d30cacde6530a669...570a8ae866a884c414e8ec4b8e41b42244121721

>---------------------------------------------------------------

commit 570a8ae866a884c414e8ec4b8e41b42244121721
Author: sagar masuti <sagar.masuti at gmail.com>
Date:   Sat Jan 31 12:15:57 2015 +0800

    Adding the PIC flag needed for relax shared library.


>---------------------------------------------------------------

570a8ae866a884c414e8ec4b8e41b42244121721
 wscript | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/wscript b/wscript
index 8504cad..ad02935 100644
--- a/wscript
+++ b/wscript
@@ -76,7 +76,7 @@ def configure(cnf):
 
  # We set the flags here 
     if not cnf.env.CFLAGS:
-        cnf.env.CFLAGS=['-O3']
+        cnf.env.CFLAGS=['-O3','-fPIC']
     if not cnf.env.FCFLAGS:
         cnf.env.FCFLAGS=['-O3']
 
@@ -243,7 +243,7 @@ def configure(cnf):
 
     # Check for C preprocessor option
     frag="program main\n  INTEGER :: foo\n" + "end program main\n"
-    cpp_flags=['-cpp','-Mpreprocess']
+    cpp_flags=['-cpp','-Mpreprocess','-fpic']
     if cnf.options.cpp_flag:
         cpp_flags=[cnf.options.cpp_flag]
     found_cpp=False



More information about the CIG-COMMITS mailing list