Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 32f6736

Browse files
committed
remove libm for vs builds
svn path=/trunk/matplotlib/; revision=2540
1 parent 31d02ef commit 32f6736

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

setupext.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,10 @@ def add_pygtk_flags(module):
238238
module.extra_link_args.extend(
239239
[flag for flag in linkerFlags if not
240240
(flag.startswith('-l') or flag.startswith('-L'))])
241+
242+
# visual studio doesn't need the math library
243+
if sys.platform=='win32' and win32_compiler != 'mingw32' and 'm' in module.libraries:
244+
module.libraries.remove('m')
241245

242246

243247
def find_wx_config():

0 commit comments

Comments
 (0)