Skip to content

Commit

Permalink
Merge pull request #530 from matthew-brett/check-linking-with-lib
Browse files Browse the repository at this point in the history
Great! thanks!
  • Loading branch information
omarocegueda committed Dec 29, 2014
2 parents 53c3d68 + 5b3c125 commit ffb6abb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion setup_helpers.py
Expand Up @@ -132,7 +132,9 @@ def can_compile_link(self, compile_flags, link_flags, code):
except CompileError:
return False
try:
cc.link_executable(objects, "a.out",
# Link shared lib rather then executable to avoid
# http://bugs.python.org/issue4431 with MSVC 10+
cc.link_shared_lib(objects, "testlib",
extra_postargs=link_flags)
except (LinkError, TypeError):
return False
Expand Down

0 comments on commit ffb6abb

Please sign in to comment.