MCPcopy Create free account
hub / github.com/numpy/numpy / get_flags_linker_so

Method get_flags_linker_so

numpy/distutils/fcompiler/intel.py:68–81  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

66 return []
67
68 def get_flags_linker_so(self):
69 opt = FCompiler.get_flags_linker_so(self)
70 v = self.get_version()
71 if v and v >= '8.0':
72 opt.append('-nofor_main')
73 if sys.platform == 'darwin':
74 # Here, it's -dynamiclib
75 try:
76 idx = opt.index('-shared')
77 opt.remove('-shared')
78 except ValueError:
79 idx = 0
80 opt[idx:idx] = ['-dynamiclib', '-Wl,-undefined,dynamic_lookup']
81 return opt
82
83
84class IntelItaniumFCompiler(IntelFCompiler):

Callers

nothing calls this directly

Calls 2

get_versionMethod · 0.45
indexMethod · 0.45

Tested by

no test coverage detected