Diff of /setup_posix.py [17062a] .. [e70512]  Maximize  Restore

  Switch to side-by-side view

--- a/setup_posix.py
+++ b/setup_posix.py
@@ -53,6 +53,13 @@
     removable_compile_args = [ compiler_flag(f) for f in "ILl" ]
     extra_compile_args = [ i.replace("%", "%%") for i in mysql_config("cflags")
                            if i[:2] not in removable_compile_args ]
+
+    # Copy the arch flags for linking as well
+    extra_link_args = list()
+    for i in range(len(extra_compile_args)):
+        if extra_compile_args[i] == '-arch':
+            extra_link_args += ['-arch', extra_compile_args[i + 1]]
+
     include_dirs = [ dequote(i[2:])
                      for i in mysql_config('include')
                      if i.startswith(compiler_flag('I')) ]
@@ -81,6 +88,7 @@
         library_dirs = library_dirs,
         libraries = libraries,
         extra_compile_args = extra_compile_args,
+        extra_link_args = extra_link_args,
         include_dirs = include_dirs,
         extra_objects = extra_objects,
         define_macros = define_macros,

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks