summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Dustman <farcepest@gmail.com>2013-11-21 11:53:34 -0800
committerAndy Dustman <farcepest@gmail.com>2013-11-21 11:53:34 -0800
commit76037a2703a4ee156ef100ea476afc397fb80229 (patch)
tree389d6c45aad06dcd3d9db81924eb8fe8ac51bb25
parent44f8b4d2b9864aa72aabc9d959c6c9f2b29b8dfd (diff)
parent0beb712e4bd520cfae0308213ee3c55582970477 (diff)
downloadmysqldb1-76037a2703a4ee156ef100ea476afc397fb80229.tar.gz
Merge pull request #35 from methane/static
remove -lmysqlclient when static linking.
-rw-r--r--setup_posix.py5
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'):