提交 f5240f36 authored 作者: Pascal Lamblin's avatar Pascal Lamblin

Fix for linking with libpython on win64

上级 ab56ecc1
...@@ -1429,6 +1429,13 @@ class GCC_compiler(object): ...@@ -1429,6 +1429,13 @@ class GCC_compiler(object):
# Under Windows it looks like fPIC is useless. Compiler warning: # Under Windows it looks like fPIC is useless. Compiler warning:
# '-fPIC ignored for target (all code is position independent)' # '-fPIC ignored for target (all code is position independent)'
preargs.append('-fPIC') preargs.append('-fPIC')
if sys.platform == 'win32' and local_bitwidth() == 64:
# Under 64-bits windows installation, sys.platform is 'win32'.
# We need to define MS_WIN64 for the preprocessor to be able to
# link with libpython.
preargs.append('-DMS_WIN64')
no_opt = False no_opt = False
include_dirs = include_dirs + std_include_dirs() include_dirs = include_dirs + std_include_dirs()
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论