File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Original file line number Diff line number Diff line change @@ -55,6 +55,13 @@ def get_config():
55
55
removable_compile_args = [ compiler_flag (f ) for f in "ILl" ]
56
56
extra_compile_args = [ i .replace ("%" , "%%" ) for i in mysql_config ("cflags" )
57
57
if i [:2 ] not in removable_compile_args ]
58
+
59
+ # Copy the arch flags for linking as well
60
+ extra_link_args = list ()
61
+ for i in range (len (extra_compile_args )):
62
+ if extra_compile_args [i ] == '-arch' :
63
+ extra_link_args += ['-arch' , extra_compile_args [i + 1 ]]
64
+
58
65
include_dirs = [ dequote (i [2 :])
59
66
for i in mysql_config ('include' )
60
67
if i .startswith (compiler_flag ('I' )) ]
@@ -83,6 +90,7 @@ def get_config():
83
90
library_dirs = library_dirs ,
84
91
libraries = libraries ,
85
92
extra_compile_args = extra_compile_args ,
93
+ extra_link_args = extra_link_args ,
86
94
include_dirs = include_dirs ,
87
95
extra_objects = extra_objects ,
88
96
define_macros = define_macros ,
You can’t perform that action at this time.
0 commit comments