diff options
author | INADA Naoki <inada-n@klab.com> | 2013-10-25 18:29:15 +0900 |
---|---|---|
committer | INADA Naoki <inada-n@klab.com> | 2013-10-25 18:29:15 +0900 |
commit | 0beb712e4bd520cfae0308213ee3c55582970477 (patch) | |
tree | ab28a723392a7412ca32d14ae7e3d25b6d6ba91a | |
parent | c8b2744ea2b1e4419b7e3d93928e92c95f366815 (diff) | |
download | mysqldb1-0beb712e4bd520cfae0308213ee3c55582970477.tar.gz |
remove -lmysqlclient when static linking.
-rw-r--r-- | setup_posix.py | 5 |
1 files 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'): |