Skip to content

Commit 0beb712

Browse files
committed
remove -lmysqlclient when static linking.
1 parent c8b2744 commit 0beb712

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)