From 0beb712e4bd520cfae0308213ee3c55582970477 Mon Sep 17 00:00:00 2001 From: INADA Naoki Date: Fri, 25 Oct 2013 18:29:15 +0900 Subject: remove -lmysqlclient when static linking. --- setup_posix.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/setup_posix.py b/setup_posix.py index f7cb588..cfcf33c 100644 --- a/setup_posix.py +++ b/setup_posix.py @@ -71,8 +71,9 @@ def get_config(): if i.startswith(compiler_flag('I')) ] if static: - extra_objects.append(os.path.join( - library_dirs[0],'lib%s.a' % client)) + extra_objects.append(os.path.join(library_dirs[0],'lib%s.a' % client)) + if client in libraries: + libraries.remove(client) name = "MySQL-python" if enabled(options, 'embedded'): -- cgit v1.2.1