From: <bpe...@us...> - 2016-02-15 00:45:42
|
Revision: 5015 http://sourceforge.net/p/simupop/code/5015 Author: bpeng2000 Date: 2016-02-15 00:45:39 +0000 (Mon, 15 Feb 2016) Log Message: ----------- Add option -fPIC for linux system Modified Paths: -------------- trunk/setup.py Modified: trunk/setup.py =================================================================== --- trunk/setup.py 2016-02-10 22:30:25 UTC (rev 5014) +++ trunk/setup.py 2016-02-15 00:45:39 UTC (rev 5015) @@ -749,8 +749,10 @@ #distutils.log.set_verbosity(distutils.log.FATAL) if os.name == 'nt': NO_WARNING_ARG = [] # ['/nowarn'] is for vc 2015 only + SHLIB_ARG = [] else: NO_WARNING_ARG = ['-w'] + SHLIB_ARG = ['-fPIC'] try: if not os.path.isfile('src/boost_pch.h.pch') or \ os.path.getmtime('src/boost_pch.h.pch') > os.path.getmtime('src/boost_pch.h'): @@ -779,7 +781,7 @@ objects = c.compile(LIB_FILES, include_dirs=['gsl', 'gsl/specfunc', 'build', '.', boost_include_dir] + common_extra_include_dirs, output_dir='build', - extra_preargs = common_extra_compile_args + NO_WARNING_ARG, + extra_preargs = common_extra_compile_args + NO_WARNING_ARG + SHLIB_ARG, macros = COMMON_MACROS + STD_MACROS ) c.create_static_lib(objects, "simuPOP_shstd", output_dir='build') @@ -787,7 +789,7 @@ objects = c.compile(LIB_FILES, include_dirs=['gsl', 'gsl/specfunc', 'build', '.', boost_include_dir] + common_extra_include_dirs, output_dir='build', - extra_preargs = common_extra_compile_args + NO_WARNING_ARG, + extra_preargs = common_extra_compile_args + NO_WARNING_ARG + SHLIB_ARG, macros = COMMON_MACROS + OPT_MACROS ) c.create_static_lib(objects, "simuPOP_shop", output_dir='build') This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |