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 50fa27d

Browse filesBrowse files
committed
Add optional --static flag to customize _mysql.so at install time
1 parent cacd5d0 commit 50fa27d
Copy full SHA for 50fa27d

File tree

Expand file treeCollapse file tree

1 file changed

+8
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+8
-0
lines changed

‎setup_posix.py

Copy file name to clipboardExpand all lines: setup_posix.py
+8Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,14 @@ def get_config():
3939

4040
extra_objects = []
4141
static = enabled(options, 'static')
42+
43+
# allow a command-line option to override the base config file to permit
44+
# a static build to be created via requirements.txt
45+
#
46+
if '--static' in sys.argv:
47+
static = True
48+
sys.argv.remove('--static')
49+
4250
if enabled(options, 'embedded'):
4351
libs = mysql_config("libmysqld-libs")
4452
elif enabled(options, 'threadsafe'):

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.