[cig-commits] [commit] master: Adding the PIC flag needed to make shared library (bcc4e26)
cig_noreply at geodynamics.org
cig_noreply at geodynamics.org
Sun Feb 1 19:30:55 PST 2015
Repository : https://github.com/geodynamics/relax
On branch : master
Link : https://github.com/geodynamics/relax/compare/570a8ae866a884c414e8ec4b8e41b42244121721...ccb9b49ada03b6c80429c8a8fa8eaf5b6478b2e1
>---------------------------------------------------------------
commit bcc4e2646b0fa172ff85df8402f28be154721a68
Author: sagar masuti <sagar.masuti at gmail.com>
Date: Sat Jan 31 12:09:21 2015 +0800
Adding the PIC flag needed to make shared library
>---------------------------------------------------------------
bcc4e2646b0fa172ff85df8402f28be154721a68
wscript | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/wscript b/wscript
index 8504cad..36ae5eb 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