Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 76037a2

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

File tree

Expand file treeCollapse file tree

1 file changed

+3
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-2
lines changed

‎setup_posix.py

Copy file name to clipboardExpand all lines: setup_posix.py
+3-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.