Skip to content

Commit 76037a2

Browse files
committed
Merge pull request #35 from methane/static
remove -lmysqlclient when static linking.
2 parents 44f8b4d + 0beb712 commit 76037a2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

setup_posix.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,9 @@ def get_config():
7171
if i.startswith(compiler_flag('I')) ]
7272

7373
if static:
74-
extra_objects.append(os.path.join(
75-
library_dirs[0],'lib%s.a' % client))
74+
extra_objects.append(os.path.join(library_dirs[0],'lib%s.a' % client))
75+
if client in libraries:
76+
libraries.remove(client)
7677

7778
name = "MySQL-python"
7879
if enabled(options, 'embedded'):

0 commit comments

Comments
 (0)