Commit d8774dbb authored by Laurent Belcour's avatar Laurent Belcour
Browse files

Adding -fPIC in the compilation of the CERES library

parent a665f59c
......@@ -33,6 +33,7 @@ if env['CC'] == ['gcc', 'g++', 'clang']:
env.AppendUnique(LIBPATH = ['#external/build/lib'])
env.AppendUnique(CPPPATH = ['#external/build/include'])
env.AppendUnique(CPPPATH = ['#sources'])
......
......@@ -49,6 +49,8 @@ if not os.path.exists('.' + os.sep + 'build' + os.sep + 'include' + os.sep + 'ce
ret = os.system(cmake_cmd + ' -G \"NMake Makefiles\"')
ret = os.system('nmake install')
else:
cmake_cmd += ' -DCMAKE_CXX_FLAGS=\"-fPIC\"'
cmake_cmd += ' -DCMAKE_C_FLAGS=\"-fPIC\"'
ret = os.system(cmake_cmd)
ret = os.system('make install')
#end
......
import sys
env = Environment()
env.Append(CPPPATH = ['../../', '../../../external/build/include'])
Import('env')
env =env.Clone()
# Soft Sources
sources = ['main.cpp']
......
import sys
env = Environment()
env.Append(CPPPATH = ['../../', '../../../external/build/include'])
Import('env')
env =env.Clone()
# Soft Sources
sources = ['main.cpp']
......
import sys
env = Environment()
env.Append(CPPPATH = ['../../', '../../../external/build/include'])
Import('env')
env = env.Clone()
# Soft Sources
sources = ['main.cpp']
......
import sys
env = Environment()
env.Append(CPPPATH = ['../../', '../../../external/build/include'])
Import('env')
env =env.Clone()
# Soft Sources
sources = ['main.cpp']
......
import sys
env = Environment()
env.Append(CPPPATH = ['../../', '../../../external/build/include'])
Import('env')
env =env.Clone()
# Soft Sources
sources = ['main.cpp']
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment