File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -71,13 +71,20 @@ class BuildExt(build_ext):
7171 'msvc' : ['/EHsc' ],
7272 'unix' : [],
7373 }
74+ l_opts = {
75+ 'msvc' : [],
76+ 'unix' : [],
77+ }
7478
7579 if sys .platform == 'darwin' :
76- c_opts ['unix' ] += ['-stdlib=libc++' , '-mmacosx-version-min=10.7' ]
80+ darwin_opts = ['-stdlib=libc++' , '-mmacosx-version-min=10.7' ]
81+ c_opts ['unix' ] += darwin_opts
82+ l_opts ['unix' ] += darwin_opts
7783
7884 def build_extensions (self ):
7985 ct = self .compiler .compiler_type
8086 opts = self .c_opts .get (ct , [])
87+ link_opts = self .l_opts .get (ct , [])
8188 if ct == 'unix' :
8289 opts .append ('-DVERSION_INFO="%s"' % self .distribution .get_version ())
8390 opts .append (cpp_flag (self .compiler ))
@@ -87,6 +94,7 @@ def build_extensions(self):
8794 opts .append ('/DVERSION_INFO=\\ "%s\\ "' % self .distribution .get_version ())
8895 for ext in self .extensions :
8996 ext .extra_compile_args = opts
97+ ext .extra_link_args = link_opts
9098 build_ext .build_extensions (self )
9199
92100setup (
You can’t perform that action at this time.
0 commit comments